From: Shawn Pearce Date: Mon, 09 Apr 2012 18:29:46 GMT Subject: Re: In tree object, Must the Message-ID: In-Reply-To: <7vobr0wyml.fsf@alter.siamese.dyndns.org> On Mon, Apr 9, 2012 at 11:25, Junio C Hamano wrote: > "Yi, EungJun" 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.