author | Thomas Rast <trast@student.ethz.ch> | |
Fri, 12 Mar 2010 17:04:28 +0000 (18:04 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 13 Mar 2010 05:55:39 +0000 (21:55 -0800) | ||
commit | 6f6bee3ba9260137f27bdcad2f8d0fac026f2b6d | |
tree | 8d1f9283b42e4d72d284f8c0bef3e917dd92c640 | tree | snapshot |
parent | c0fc6869112e07cda2faff73670480df0d82d530 | commit | diff |
commit --amend: invoke post-rewrite hook
The rough structure of run_rewrite_hook() comes from
run_receive_hook() in receive-pack.
We introduce a --no-post-rewrite option and use it to avoid the hook
when called from git-rebase -i 'edit'. The next patch will add full
support in git-rebase, and we only want to invoke the hook once.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The rough structure of run_rewrite_hook() comes from
run_receive_hook() in receive-pack.
We introduce a --no-post-rewrite option and use it to avoid the hook
when called from git-rebase -i 'edit'. The next patch will add full
support in git-rebase, and we only want to invoke the hook once.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | diff | blob | history | |
git-rebase--interactive.sh | diff | blob | history | |
t/t5407-post-rewrite-hook.sh | [new file with mode: 0755] | blob |