X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-prune-packed.c;h=960db49859a286bf5f3515ee7c2bfe25fe44d09e;hb=170487fbc3d7ec0f36208eed18d4ca0ea1e1acb7;hp=d0ff336c1479a772f9658ccc52d561469116707d;hpb=53bb2c002a53cdd0746444defbf5323ea21eb8d5;p=git.git diff --git a/builtin-prune-packed.c b/builtin-prune-packed.c index d0ff336c1..960db4985 100644 --- a/builtin-prune-packed.c +++ b/builtin-prune-packed.c @@ -1,3 +1,4 @@ +#include "builtin.h" #include "cache.h" static const char prune_packed_usage[] = @@ -18,7 +19,7 @@ static void prune_dir(int i, DIR *dir, char *pathname, int len) memcpy(hex+2, de->d_name, 38); if (get_sha1_hex(hex, sha1)) continue; - if (!has_sha1_pack(sha1)) + if (!has_sha1_pack(sha1, NULL)) continue; memcpy(pathname + len, de->d_name, 38); if (dryrun) @@ -54,7 +55,7 @@ static void prune_packed_objects(void) } } -int cmd_prune_packed(int argc, char **argv, const char *prefix) +int cmd_prune_packed(int argc, const char **argv, const char *prefix) { int i;