Re: On pathnames
- From
Nicolas Pitre <nico@cam.org>
- Date
- Jan 24, 2008, 22:31 UTC
- Message-ID
- <alpine.LFD.1.00.0801241722130.22568@xanadu.home>
- In-Reply-To
- <7vprvr7x8h.fsf@gitster.siamese.dyndns.org>
On Thu, 24 Jan 2008, Junio C Hamano wrote:
Show 9 quoted lines
> If it is a new file, we won't find any name that is equivalent > to $A in the index, and we use the name $A obtained from > readdir(3). > > BUT with a twist. > > If the filesystem is known to be inconveniently case folding, we > are better off registering $B instead of $A (assuming we can > convert from $A to $B).
Why?
If you have no other representation for the file name than $A already, then I don't see why Git would have to play similar evil games and corru^H^H^Hnvert $A into $B. Just store $A in the index and tree objects and be done with it.
Nicolas