From: Christian Couder Date: Sat, 09 Nov 2013 07:07:04 GMT Subject: [PATCH 71/86] builtin/prune: replace prefixcmd() with has_prefix() Message-ID: <20131109070720.18178.82667.chriscool@tuxfamily.org> In-Reply-To: <20131109070358.18178.40248.chriscool@tuxfamily.org> Signed-off-by: Christian Couder --- builtin/prune.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/prune.c b/builtin/prune.c index 6366917..59682ff 100644 --- a/builtin/prune.c +++ b/builtin/prune.c @@ -80,7 +80,7 @@ static int prune_dir(int i, char *path) prune_object(path, de->d_name, sha1); continue; } - if (!prefixcmp(de->d_name, "tmp_obj_")) { + if (has_prefix(de->d_name, "tmp_obj_")) { prune_tmp_object(path, de->d_name); continue; } @@ -119,7 +119,7 @@ static void remove_temporary_files(const char *path) return; } while ((de = readdir(dir)) != NULL) - if (!prefixcmp(de->d_name, "tmp_")) + if (has_prefix(de->d_name, "tmp_")) prune_tmp_object(path, de->d_name); closedir(dir); } -- 1.8.4.1.566.geca833c