aboutsummaryrefslogtreecommitdiff
path: root/git-rebase--interactive.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-12-19 19:23:03 -0800
committerJunio C Hamano <gitster@pobox.com>2007-12-20 01:11:53 -0800
commitfbcf1184026197128582369074201c490009b4eb (patch)
tree614febe1cec3ad1e1f4a4c8dfd4fae59c309e76a /git-rebase--interactive.sh
parent885ed372d09f68806b17fc8fd0ac13a46636aeb2 (diff)
downloadgit-fbcf1184026197128582369074201c490009b4eb.tar.gz
git-fbcf1184026197128582369074201c490009b4eb.tar.xz
fix git commit --amend -m "new message"
The prepare_log_message() function serves two purposes: - Prepares the commit log message template, to be given to the end user; - Return true if there is something committable; 7168624c3530d8c7ee32f930f8fb2ba302b9801f (Do not generate full commit log message if it is not going to be used) cheated to omit the former when we know the log message template is not going to be used. However, its replacement logic to see if there is something committable was botched. When amending, it should compare the index with the parent of the HEAD, not the current HEAD. Otherwise you cannot run --amend to fix only the message without changing the tree. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase--interactive.sh')
0 files changed, 0 insertions, 0 deletions