summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a9930e3)
raw | patch | inline | side by side (parent: a9930e3)
author | Csaba Henk <csaba@lowlife.hu> | |
Fri, 27 May 2011 20:13:02 +0000 (16:13 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 27 May 2011 22:52:01 +0000 (15:52 -0700) |
When we abort a rebase, we return to the original value of
HEAD. Failing to write a reflog entry means we create a
gap in the reflog (which can cause "git show
HEAD@{5.minutes.ago}" to issue a warning). Plus having the
extra entry makes the reflog easier to follow for a human.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
HEAD. Failing to write a reflog entry means we create a
gap in the reflog (which can cause "git show
HEAD@{5.minutes.ago}" to issue a warning). Plus having the
extra entry makes the reflog easier to follow for a human.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh | patch | blob | history |
diff --git a/git-rebase.sh b/git-rebase.sh
index 7a54bfc6182a567860af023cb7720680d1806c72..57cbe49ea42cb58031b8f78daef4d318486cc1cc 100755 (executable)
--- a/git-rebase.sh
+++ b/git-rebase.sh
read_basic_state
case "$head_name" in
refs/*)
- git symbolic-ref HEAD $head_name ||
+ git symbolic-ref -m "rebase: aborting" HEAD $head_name ||
die "Could not move back to $head_name"
;;
esac