Re: [PATCH v7 1/3] read-cache: add strcmp_offset function

2017-04-08 Thread Jeff King
On Fri, Apr 07, 2017 at 09:20:45PM +, g...@jeffhostetler.com wrote: > diff --git a/t/helper/test-strcmp-offset.c b/t/helper/test-strcmp-offset.c > new file mode 100644 > index 000..03e1eef > --- /dev/null > +++ b/t/helper/test-strcmp-offset.c > @@ -0,0 +1,64 @@ > +#include "cache.h" > + >

[PATCH v7 1/3] read-cache: add strcmp_offset function

2017-04-07 Thread git
From: Jeff Hostetler Add strcmp_offset() function to also return the offset of the first change. Add unit test and helper to verify. Signed-off-by: Jeff Hostetler --- Makefile | 1 + cache.h | 1 + read-cache.c | 20 ++