git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 11, 2015, 20:16 UTC
Message-ID
<xmqqoanz5lxw.fsf@gitster.dls.corp.google.com>
In-Reply-To
<55003757.8090004@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 19 quoted lines
> Junio C Hamano venit, vidit, dixit 10.03.2015 21:20:
>> 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...
Previous: Michael J Gruber
Message 3 of 3 in “[JFF] "-" and "@{-1}" on various programs”
  1. Junio C HamanoMar 10, 2015
  2. Michael J GruberMar 11, 2015
  3. Junio C HamanoMar 11, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.