diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-21 16:52:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-09 01:22:25 -0700 |
commit | 0a9b88b7dee70bd36d35b7857640a18ee3adeef1 (patch) | |
tree | 8d5fb7c5423aaecc30d6ed3beabb6529921e808a /dir.c | |
parent | cd2fef59edf72a1d9792d9cb72aae1e6f6c7b1d4 (diff) | |
download | git-0a9b88b7dee70bd36d35b7857640a18ee3adeef1.tar.gz git-0a9b88b7dee70bd36d35b7857640a18ee3adeef1.tar.xz |
Add 'core.ignorecase' option
..and start using it for directory entry traversal (ie "git status" will
not consider entries that match an existing entry case-insensitively to
be a new file)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -371,7 +371,7 @@ static struct dir_entry *dir_entry_new(const char *pathname, int len) struct dir_entry *dir_add_name(struct dir_struct *dir, const char *pathname, int len) { - if (cache_name_exists(pathname, len, 0)) + if (cache_name_exists(pathname, len, ignore_case)) return NULL; ALLOC_GROW(dir->entries, dir->nr+1, dir->alloc); |