git-rebase: print name of rev when using shorthand
commitf2d6e2b3239ee1c5ffb3cd25346719679a19ce6f
authorBrian Gesiak <modocache@gmail.com>
Wed, 16 Apr 2014 08:31:48 +0000 (16 17:31 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Apr 2014 21:02:11 +0000 (16 14:02 -0700)
tree3dccc2af161004db6991b82a1b7efffa52e2c3b0
parent4f4074077fb0c3a2facc61b333337d024aeeebbf
git-rebase: print name of rev when using shorthand

The output from a successful invocation of the shorthand command
"git rebase -" is something like "Fast-forwarded HEAD to @{-1}",
which includes a relative reference to a revision. Other commands
that use the shorthand "-", such as "git checkout -", typically
display the symbolic name of the revision.

Change rebase to output the symbolic name of the revision when using
the shorthand. For the example above, the new output is
"Fast-forwarded HEAD to master", assuming "@{-1}" is a reference to
"master".

Requested-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Brian Gesiak <modocache@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase.sh
t/t3400-rebase.sh