Thread (1 message) 1 message, 1 author, 2022-08-13

Re: [PATCH] branch: allow "-" as a short-hand for "previous branch"

From: Junio C Hamano <hidden>
Date: 2022-08-13 22:29:50

Rubén Justo [off-list ref] writes:
Previous to this, I thought about making also a "git diff -",
...
Also discarded the "git diff -" change, because of so many flags and
conditions "diff" has. So I only sent the "branch -" patch.
Yeah, that is why the approach Johannes showed, i.e. instead of
making "in this context but not in that context, '-' means
'previous'" changes to random commands, teaching anybody that takes
@{-1} to understand that '-' means 'previous' everywhere, appears
very tempting.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help