X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-count-objects.c;h=1b0b6c84ea4279df56b82c5a406adbea59e58513;hb=974e6e42f7a66b69bd684af4f637ab064acfdf92;hp=62fd1f0961a29cc81032d20b3fe37fcc91293407;hpb=1e7ef0253c91bf2f25f9d8e44795b642737e664e;p=git.git diff --git a/builtin-count-objects.c b/builtin-count-objects.c index 62fd1f096..1b0b6c84e 100644 --- a/builtin-count-objects.c +++ b/builtin-count-objects.c @@ -60,7 +60,7 @@ static void count_objects(DIR *d, char *path, int len, int verbose, hex[40] = 0; if (get_sha1_hex(hex, sha1)) die("internal error"); - if (has_sha1_pack(sha1, NULL)) + if (has_sha1_pack(sha1)) (*packed_loose)++; } } @@ -83,7 +83,7 @@ int cmd_count_objects(int argc, const char **argv, const char *prefix) OPT_END(), }; - argc = parse_options(argc, argv, opts, count_objects_usage, 0); + argc = parse_options(argc, argv, prefix, opts, count_objects_usage, 0); /* we do not take arguments other than flags for now */ if (argc) usage_with_options(count_objects_usage, opts);