diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-21 15:55:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-04-09 01:22:25 -0700 |
commit | cd2fef59edf72a1d9792d9cb72aae1e6f6c7b1d4 (patch) | |
tree | 720d22370ec0831e4ff8800d96ddd19c90106d69 /dir.c | |
parent | df292c791ab790340cc9e3577a073bcb9d1900ea (diff) | |
download | git-cd2fef59edf72a1d9792d9cb72aae1e6f6c7b1d4.tar.gz |
Make hash_name_lookup able to do case-independent lookups
Right now nobody uses it, but "index_name_exists()" gets a flag so
you can enable it on a case-by-case basis.
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)) + if (cache_name_exists(pathname, len, 0)) return NULL; ALLOC_GROW(dir->entries, dir->nr+1, dir->alloc); |