[PATCH v2] name-hash.c: fix endless loop with core.ignorecase=true

2013-02-27 Thread Karsten Blees
With core.ignorecase=true, name-hash.c builds a case insensitive index of all tracked directories. Currently, the existing cache entry structures are added multiple times to the same hashtable (with different name lengths and hash codes). However, there's only one dir_next pointer, which gets

Re: [PATCH v2] name-hash.c: fix endless loop with core.ignorecase=true

2013-02-27 Thread Junio C Hamano
Karsten Blees karsten.bl...@gmail.com writes: With core.ignorecase=true, name-hash.c builds a case insensitive index of all tracked directories. Currently, the existing cache entry structures are added multiple times to the same hashtable (with different name lengths and hash codes). However,