name-hash.c: replace cache_name_compare() with memcmp(3)
commitbe99ec97c8a1f94e723c6cc5331eff921ae49ed3
authorJeremiah Mahler <jmmahler@gmail.com>
Fri, 20 Jun 2014 02:06:43 +0000 (19 19:06 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Jun 2014 17:08:10 +0000 (20 10:08 -0700)
tree42bf5a8aa8c0ce9d9173480388c2b9612d36ded4
parentcb682f8cfe63ecd0da08a526f404d295e51e3ab1
name-hash.c: replace cache_name_compare() with memcmp(3)

The same_name() private function wants a quick-and-exact check to
see if they two names are byte-for-byte identical first and then
fall back to the slow path.  Use memcmp(3) for the former to make it
clear that we do not want any "name" specific comparison.

Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
name-hash.c