Re: [PATCH v5 1/2] name-hash.c: replace cache_name_compare() with memcmp()

2014-06-25 Thread Junio C Hamano
Jeremiah Mahler writes: > When cache_name_compare() is used on counted strings of the same > length, it is equivalent to a memcmp(). Since the one use of > cache_name_compare() in name-hash.c requires that the lengths are > equal, just replace it with memcmp(). I do not think it is not "require

[PATCH v5 1/2] name-hash.c: replace cache_name_compare() with memcmp()

2014-06-19 Thread Jeremiah Mahler
When cache_name_compare() is used on counted strings of the same length, it is equivalent to a memcmp(). Since the one use of cache_name_compare() in name-hash.c requires that the lengths are equal, just replace it with memcmp(). Signed-off-by: Jeremiah Mahler --- name-hash.c | 2 +- 1 file cha