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

Re: [PATCH] "git diff <tree>{3,}": do not reverse order of arguments

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 11, 2008, 21:36 UTC
Message-ID
<7vtzbiizk8.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<237967ef0810110553r662df370ud1ec34de402bfe1c@mail.gmail.com>
"Mikael Magnusson" <mikachu@gmail.com> writes:
Show 8 quoted lines
> 2008/10/11 Junio C Hamano <gitster@pobox.com>:
>> Perhaps the thinko was caused by discrepancy between the way internal
>> revision parser handles A..B and the way git-rev-parse parses it.  While
>> the internal revision parser parses it into "A ^B", rev-parse gives them
>> in reverse order, i.e. "B ^A" (which is not going to change).  In any
>> case, thanks for spotting this.
>
> Ehm, do you mean the internal parses it into "A ^B" and rev-parse gives "^B A"?
Sorry; a typo is in my description on the result from the internal parser.

For A..B, rev-parse gives B^ then A, and internal gives ^A in ent[0] and B in ent[1].

Previous: Mikael Magnusson
Message 4 of 4 in “"git diff <tree>{3,}": do not reverse order of arguments”
  1. "git diff <tree>{3,}": do not reverse order of argumentsMatt McCutchen, Oct 11, 2008
  2. Junio C HamanoOct 11, 2008
  3. Mikael MagnussonOct 11, 2008
  4. Junio C HamanoOct 11, 2008

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.