summaryrefslogtreecommitdiff
path: root/transport.h
diff options
context:
space:
mode:
authorLibravatar Joshua Jensen <jjensen@workspacewhiz.com>2010-10-03 09:56:42 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-10-06 11:19:58 -0700
commit10d4b02b9962170e15d1d65b03581ef8bef66e2e (patch)
tree71548a9b925ab049da3f005d01b44f90a97633e9 /transport.h
parentAdd string comparison functions that respect the ignore_case variable. (diff)
downloadtgif-10d4b02b9962170e15d1d65b03581ef8bef66e2e.tar.xz
Case insensitivity support for .gitignore via core.ignorecase
This is especially beneficial when using Windows and Perforce and the git-p4 bridge. Internally, Perforce preserves a given file's full path including its case at the time it was added to the Perforce repository. When syncing a file down via Perforce, missing directories are created, if necessary, using the case as stored with the filename. Unfortunately, two files in the same directory can have differing cases for their respective paths, such as /diRa/file1.c and /DirA/file2.c. Depending on sync order, DirA/ may get created instead of diRa/. It is possible to handle directory names in a case insensitive manner without this patch, but it is highly inconvenient, requiring each character to be specified like so: [Bb][Uu][Ii][Ll][Dd]. With this patch, the gitignore exclusions honor the core.ignorecase=true configuration setting and make the process less error prone. The above is specified like so: Build Signed-off-by: Joshua Jensen <jjensen@workspacewhiz.com> Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.h')
0 files changed, 0 insertions, 0 deletions