Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH v2] git-rebase: Teach rebase "-" shorthand.

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:00:23

John Keeping [off-list ref] writes:
quoted
I thought your suggestion was:

    'rebase @{-1}' says 'Fast-fowarded HEAD to @{-1}'. It should say
    'Fast-forwarded HEAD to 4f407407 (rebase: allow "-" short-hand
    for the previous branch, 2014-03-19)' instead.

Or it could be:

    'rebase @{-1}' says 'Fast-fowarded HEAD to @{-1}'. It should say
    'Fast-forwarded HEAD to master' instead.

In either case, it does not look like such a change is about
teaching "-" as a synonym to "@{-1}".
My suggestion was specifically:

    'rebase -' says 'Fast-forwarded HEAD to -'.  It should say
    'Fast-forwarded HEAD to master' instead.
OK, it was closer to the latter.

But why is it OK to leave @{-1}, which is just as "hmm, I do not
remember what the previous branch was myself" when the user says
"@{-1}" in the output while it not OK to leave "-" in the output?

I do not think of any sane reason, and that is why I think this
improvement is not part of "teaching rebase that '-' can be used in
place of @{-1}" topic.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help