for-each-ref: use skip_prefix instead of starts_with
commit3dbe9db01bd9c0b0701f72a631ac15b1791f6642
authorJeff King <peff@peff.net>
Thu, 21 May 2015 04:45:51 +0000 (21 00:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 May 2015 16:33:08 +0000 (22 09:33 -0700)
treeb70424662931f9288f085918fa830299ef0f8961
parentadfe5d04345631299f9a4518d56c6dd3d47eb0b3
for-each-ref: use skip_prefix instead of starts_with

This saves us having to maintain a magic number to skip past
the matched prefix.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/for-each-ref.c