Code

commit --amend: copy notes to the new commit
authorThomas Rast <trast@student.ethz.ch>
Fri, 12 Mar 2010 17:04:34 +0000 (18:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 13 Mar 2010 05:55:40 +0000 (21:55 -0800)
commit6360d343af9acf7366be6ff89740f5077e12277b
treeae4f1e77e120cf24e951ec729a7e006a50a880a7
parenteb2151bb8938a8e2af86e3ed34243af7b1c95786
commit --amend: copy notes to the new commit

Teaches 'git commit --amend' to copy notes.  The catch is that this
must also be guarded by --no-post-rewrite, which we use to prevent
--amend from copying notes during a rebase -i 'edit'/'reword'.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c
t/t7501-commit.sh