X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fgc.c;h=1a80702b3d1c86b55af24be3b3396f17e9d4a21c;hb=62270f6b0a4e67e5044fb0d70d0e82ac6e553eb2;hp=397a1e6eb3ae8ec0e367a8faa2ca823586d26e6a;hpb=5e738ae820ec53c45895b029baa3a1f63e654b1b;p=git.git diff --git a/builtin/gc.c b/builtin/gc.c index 397a1e6eb..1a80702b3 100644 --- a/builtin/gc.c +++ b/builtin/gc.c @@ -189,6 +189,9 @@ int cmd_gc(int argc, const char **argv, const char *prefix) OPT_END() }; + if (argc == 2 && !strcmp(argv[1], "-h")) + usage_with_options(builtin_gc_usage, builtin_gc_options); + git_config(gc_config, NULL); if (pack_refs < 0)