From: Christian Couder Date: Sat, 09 Nov 2013 07:07:03 GMT Subject: [PATCH 70/86] builtin/pack-objects: replace prefixcmd() with has_prefix() Message-ID: <20131109070720.18178.14075.chriscool@tuxfamily.org> In-Reply-To: <20131109070358.18178.40248.chriscool@tuxfamily.org> Signed-off-by: Christian Couder --- builtin/pack-objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index e86cd57..45ee54a 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -2031,7 +2031,7 @@ static int add_ref_tag(const char *path, const unsigned char *sha1, int flag, vo { unsigned char peeled[20]; - if (!prefixcmp(path, "refs/tags/") && /* is a tag? */ + if (has_prefix(path, "refs/tags/") && /* is a tag? */ !peel_ref(path, peeled) && /* peelable? */ locate_object_entry(peeled)) /* object packed? */ add_object_entry(sha1, OBJ_TAG, NULL, 0); -- 1.8.4.1.566.geca833c