name-rev: use skip_prefix() instead of starts_with()
authorRené Scharfe <redacted>
Tue, 26 Nov 2019 15:23:31 +0000 (16:23 +0100)
committerJunio C Hamano <redacted>
Wed, 27 Nov 2019 02:21:18 +0000 (11:21 +0900)
commit2059e79c0dac1e1e4e55733618dc6ca9d00b8aa4
treeb2ddd64b25ac399c7d407ef45b11efcdab7f2592
parent1768aaf01d3f57af8c4182d5887d219456f4a094
name-rev: use skip_prefix() instead of starts_with()

Let skip_prefix() advance refname to get rid of two magic numbers.

Signed-off-by: René Scharfe <redacted>
Acked-by: Jeff King <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/name-rev.c
git clone https://git.99rst.org/PROJECT