Add case insensitivity support when using git ls-files
authorJoshua Jensen <redacted>
Sun, 3 Oct 2010 09:56:44 +0000 (09:56 +0000)
committerJunio C Hamano <redacted>
Wed, 6 Oct 2010 18:19:59 +0000 (11:19 -0700)
commit21444f1805d2ea3c7b297101e9470048cdcf58d2
tree179504e358499ea2a38edb1aeab7d7d134cf9151
parent5102c6173c5a1c683dfdd8ccd07528adddd51745
Add case insensitivity support when using git ls-files

When mydir/filea.txt is added, mydir/ is renamed to MyDir/, and
MyDir/fileb.txt is added, running git ls-files mydir only shows
mydir/filea.txt. Running git ls-files MyDir shows MyDir/fileb.txt.
Running git ls-files mYdIR shows nothing.

With this patch running git ls-files for mydir, MyDir, and mYdIR shows
mydir/filea.txt and MyDir/fileb.txt.

Wildcards are not handled case insensitively in this patch. Example:
MyDir/aBc/file.txt is added. git ls-files MyDir/a* works fine, but git
ls-files mydir/a* does not.

Signed-off-by: Joshua Jensen <redacted>
Signed-off-by: Johannes Sixt <redacted>
Signed-off-by: Junio C Hamano <redacted>
dir.c
git clone https://git.99rst.org/PROJECT