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) | ||
commit | ea69619cd1081359e73e597a76fcf6444f222f2d | |
tree | 4b8aa608078c738e3b2f2c2158e3251dc82d921a | tree | snapshot |
parent | a9930e359c45302f92639e8cd0a61c9c912e0b22 | commit | diff |
rebase: create HEAD reflog entry when aborting
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>
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>
git-rebase.sh | diff | blob | history |