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

Re: In tree object, Must the

From
Shawn Pearce <spearce@spearce.org>
Date
Apr 9, 2012, 18:29 UTC
Message-ID
<CAJo=hJv==GrxLH6U9MAwckcEXiYtKeMEpEMNVTJLcSKro2QV_w@mail.gmail.com>
In-Reply-To
<7vobr0wyml.fsf@alter.siamese.dyndns.org>
On Mon, Apr 9, 2012 at 11:25, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> "Yi, EungJun" <semtlenori@gmail.com> writes:
>
>> If it is true, what happens if it is not ordered?
>
> "git diff-tree" and "git diff-index" (hence "git diff" frontend when it
> walks the tree for comparison) will fail.

And JGit and any JGit derived tool (e.g. EGit, Gerrit Code Review) will fail horribly and refuse to process that tree, or worse, will produce incorrect results when fed garbage like an unsorted or incorrectly sorted tree.

Tree ordering matters. And that niggly bit about subtrees sorting as though their names end in '/' even though they don't really matters.

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 7 in “In tree object, Must the”
  1. Yi, EungJunApr 8, 2012
  2. Carlos Martín NietoApr 8, 2012
  3. Yi, EungJunApr 8, 2012
  4. Junio C HamanoApr 9, 2012
  5. Shawn PearceApr 9, 2012
  6. Junio C HamanoApr 9, 2012
  7. Shawn PearceApr 9, 2012

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.