Re: [PATCH] update-ref --stdin: use skip_prefix()

2018-06-03 Thread Jeff King
On Sun, Jun 03, 2018 at 04:36:51PM +0200, SZEDER Gábor wrote: > Use skip_prefix() instead of starts_with() and strcmp() when parsing > 'git update-ref's stdin to avoid a couple of magic numbers. I was coincidentally looking at this the other day also noticed these. Thanks for cleaning it up (and

[PATCH] update-ref --stdin: use skip_prefix()

2018-06-03 Thread SZEDER Gábor
Use skip_prefix() instead of starts_with() and strcmp() when parsing 'git update-ref's stdin to avoid a couple of magic numbers. Signed-off-by: SZEDER Gábor --- builtin/update-ref.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git