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

2017-04-07 Thread Jeff Hostetler
On 4/6/2017 7:07 PM, René Scharfe wrote: Am 06.04.2017 um 18:34 schrieb g...@jeffhostetler.com: diff --git a/read-cache.c b/read-cache.c index 9054369..e8f1900 100644 --- a/read-cache.c +++ b/read-cache.c @@ -887,6 +887,26 @@ static int has_file_name(struct index_state *istate, return re

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

2017-04-06 Thread René Scharfe
Am 06.04.2017 um 18:34 schrieb g...@jeffhostetler.com: diff --git a/read-cache.c b/read-cache.c index 9054369..e8f1900 100644 --- a/read-cache.c +++ b/read-cache.c @@ -887,6 +887,26 @@ static int has_file_name(struct index_state *istate, return retval; } + +/* + * Like strcmp(), but

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

2017-04-06 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 ++