update-ref --stdin: use skip_prefix()
commitaee9be2ebe370029f6289870fbd1714dccce2adf
authorSZEDER Gábor <szeder.dev@gmail.com>
Sun, 3 Jun 2018 14:36:51 +0000 (3 16:36 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Jun 2018 03:26:01 +0000 (4 12:26 +0900)
treedf21482111842a165495174f6f71018bebbd8d12
parenta42a58d7b62cc1d6301440e81a83feed9d7c118c
update-ref --stdin: use skip_prefix()

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 <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c