]> asedeno.scripts.mit.edu Git - git.git/commitdiff
rebase -i: When an 'edit' stops, mention the commit
authorJohannes Sixt <johannes.sixt@telecom.at>
Wed, 23 Jul 2008 07:46:35 +0000 (09:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Jul 2008 19:02:57 +0000 (12:02 -0700)
In a rebase session where more than one commit is to be 'edit'ed, and the
user spends considerable time to 'edit' a commit, it is easy to forget what
one wanted to 'edit' at the individual commits. It would be helpful to see
at which commit the rebase stopped.

Incidentally, if the rebase stopped due to merge conflicts or other errors,
the commit was already reported ("Could not apply $sha1..."), but when
rebase stopped after successfully applying an "edit" commit, it would not
mention it. With this change the commit is reported.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh

index e63a864c7b1b5057737fda1e52c88d1d5e40322f..4e334ba41dad3067394b79c15ebfe610b2d3e178 100755 (executable)
@@ -277,7 +277,7 @@ do_next () {
                        die_with_patch $sha1 "Could not apply $sha1... $rest"
                make_patch $sha1
                : > "$DOTEST"/amend
-               warn
+               warn "Stopped at $sha1... $rest"
                warn "You can amend the commit now, with"
                warn
                warn "  git commit --amend"