Re: [PATCH v5 2/2] cleanup duplicate name_compare() functions

2014-06-25 Thread Junio C Hamano
Jeremiah Mahler jmmah...@gmail.com writes: We often represent our strings as a counted string, i.e. a pair of the pointer to the beginning of the string and its length, and the string may not be NUL terminated to that length. To compare a pair of such counted strings, unpack-trees.c and

[PATCH v5 2/2] cleanup duplicate name_compare() functions

2014-06-19 Thread Jeremiah Mahler
We often represent our strings as a counted string, i.e. a pair of the pointer to the beginning of the string and its length, and the string may not be NUL terminated to that length. To compare a pair of such counted strings, unpack-trees.c and read-cache.c implement their own name_compare()