]> git.ipfire.org Git - thirdparty/git.git/commit - dir.c
Add string comparison functions that respect the ignore_case variable.
authorJoshua Jensen <jjensen@workspacewhiz.com>
Sun, 3 Oct 2010 09:56:41 +0000 (09:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Oct 2010 18:19:58 +0000 (11:19 -0700)
commit8cf2a84e9d6adcfc42dadfe4ec2f9bdbb0cdb59b
tree798d8e86310fb6c37fc4017b68bf39713bb7d228
parent4de066b6f12a17b2b4d3206ee66efb251e1cdd29
Add string comparison functions that respect the ignore_case variable.

Multiple locations within this patch series alter a case sensitive
string comparison call such as strcmp() to be a call to a string
comparison call that selects case comparison based on the global
ignore_case variable. Behaviorally, when core.ignorecase=false, the
*_icase() versions are functionally equivalent to their C runtime
counterparts.  When core.ignorecase=true, the *_icase() versions perform
a case insensitive comparison.

Like Linus' earlier ignorecase patch, these may ignore filename
conventions on certain file systems. By isolating filename comparisons
to certain functions, support for those filename conventions may be more
easily met.

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>
dir.c
dir.h