Re: "git-diff-tree -R A B == git-diff-tree B A"?

From: Linus Torvalds <torvalds@osdl.org>
Date: 2005-05-21 01:57:32
On Fri, 20 May 2005, Linus Torvalds wrote:
>
> The only correct way to do name sorting is the one that fsck does in
> "verify_order()". To realize why, you need to realize that "A" (the
> directory) sorts _after_ a filename "A file", because '/' sorts after ' '.  
> 
> In contrast, "A" (the directory) sorts _before_ "ABBA" (the band), because
> '/' sorts before 'B'.

Btw, in case you wonder: the real problem is that we use 
"cache_name_compare()" on a directory name. The function is (as the name 
says) designed for full pathnames, not the diff-tree kind of possibly 
partial basenames.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat May 21 01:55:48 2005

This archive was generated by hypermail 2.1.8 : 2005-05-21 01:55:48 EST