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

Re: [JFF] "-" and "@{-1}" on various programs

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

Michael J Gruber [off-list ref] writes:
Junio C Hamano venit, vidit, dixit 10.03.2015 21:20:
quoted
JFF stands for just for fun.
...
What does not work are what needs further tweaking in revision.c
parser.  "git checkout master && git checkout next && git log -.."
should show what next has on top of master but I didn't touch the
range notation so it does not work, for example.

 builtin/checkout.c |  3 ---
 builtin/merge.c    |  3 +--
 builtin/revert.c   |  2 --
 revision.c         |  2 +-
 sha1_name.c        | 57 +++++++++++++++++++++++++++++++++---------------------
 5 files changed, 37 insertions(+), 30 deletions(-)
Like it :)

It removes the special casing and makes a shorthand available
systematically. I'd say it's useful even without extending it to ranges.
I wouldn't have done this if I thought it will lead to an unusable
blind alley ;-) But I won't be hacking on this any further for now.

Hint hint...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help