X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=builtin%2Fgc.c;h=1a80702b3d1c86b55af24be3b3396f17e9d4a21c;hb=716958c9a23cbb4bf671dc89e094742e8ec41793;hp=397a1e6eb3ae8ec0e367a8faa2ca823586d26e6a;hpb=5e826019ef48e1d324c9a1866ed65f5be8990998;p=thirdparty%2Fgit.git diff --git a/builtin/gc.c b/builtin/gc.c index 397a1e6eb3..1a80702b3d 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)