Re: [PATCH] Rewrite git-compat-util.h:skip_prefix() as a loop

2014-02-27 Thread Jeff King
On Thu, Feb 27, 2014 at 09:33:45PM +0100, David Kastrup wrote: > >> diff --git a/git-compat-util.h b/git-compat-util.h > >> index cbd86c3..4daa6cf 100644 > >> --- a/git-compat-util.h > >> +++ b/git-compat-util.h > >> @@ -357,8 +357,8 @@ extern int suffixcmp(const char *str, const char > >> *suffi

Re: [PATCH] Rewrite git-compat-util.h:skip_prefix() as a loop

2014-02-27 Thread Junio C Hamano
David Kastrup writes: > Junio C Hamano writes: > >> Sun He writes: >> >>> Signed-off-by: Sun He >>> --- >>> git-compat-util.h |4 ++-- >>> 1 files changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/git-compat-util.h b/git-compat-util.h >>> index cbd86c3..4daa6cf 100644 >>> ---

Re: [PATCH] Rewrite git-compat-util.h:skip_prefix() as a loop

2014-02-27 Thread David Kastrup
Junio C Hamano writes: > Sun He writes: > >> Signed-off-by: Sun He >> --- >> git-compat-util.h |4 ++-- >> 1 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/git-compat-util.h b/git-compat-util.h >> index cbd86c3..4daa6cf 100644 >> --- a/git-compat-util.h >> +++ b/git-comp

Re: [PATCH] Rewrite git-compat-util.h:skip_prefix() as a loop

2014-02-27 Thread Junio C Hamano
Sun He writes: > Signed-off-by: Sun He > --- > git-compat-util.h |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/git-compat-util.h b/git-compat-util.h > index cbd86c3..4daa6cf 100644 > --- a/git-compat-util.h > +++ b/git-compat-util.h > @@ -357,8 +357,8 @@ exter

[PATCH] Rewrite git-compat-util.h:skip_prefix() as a loop

2014-02-27 Thread Sun He
Signed-off-by: Sun He --- git-compat-util.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/git-compat-util.h b/git-compat-util.h index cbd86c3..4daa6cf 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -357,8 +357,8 @@ extern int suffixcmp(const char *str, co