From: Christian Couder Date: Sat, 09 Nov 2013 07:06:21 GMT Subject: [PATCH 28/86] bisect: replace prefixcmd() with has_prefix() Message-ID: <20131109070720.18178.4605.chriscool@tuxfamily.org> In-Reply-To: <20131109070358.18178.40248.chriscool@tuxfamily.org> Signed-off-by: Christian Couder --- bisect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bisect.c b/bisect.c index 1e46a4f..4819091 100644 --- a/bisect.c +++ b/bisect.c @@ -406,9 +406,9 @@ static int register_ref(const char *refname, const unsigned char *sha1, if (!strcmp(refname, "bad")) { current_bad_sha1 = xmalloc(20); hashcpy(current_bad_sha1, sha1); - } else if (!prefixcmp(refname, "good-")) { + } else if (has_prefix(refname, "good-")) { sha1_array_append(&good_revs, sha1); - } else if (!prefixcmp(refname, "skip-")) { + } else if (has_prefix(refname, "skip-")) { sha1_array_append(&skipped_revs, sha1); } -- 1.8.4.1.566.geca833c