X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-gc.c;h=45025fba30c1fb594a696c26a7eac11862cfd8f9;hb=f09c9b8c5ff9d8a15499b09ccd6c3e7b3c76af77;hp=8ea165aef11a783bcd7891ed18519a19a8e76cb1;hpb=cc93020f5213b589ff1e512185c47d8c38a4b994;p=git.git diff --git a/builtin-gc.c b/builtin-gc.c index 8ea165aef..45025fba3 100644 --- a/builtin-gc.c +++ b/builtin-gc.c @@ -17,11 +17,11 @@ static const char builtin_gc_usage[] = "git-gc [--prune] [--aggressive]"; -static int pack_refs = -1; +static int pack_refs = 1; static int aggressive_window = -1; #define MAX_ADD 10 -static const char *argv_pack_refs[] = {"pack-refs", "--prune", NULL}; +static const char *argv_pack_refs[] = {"pack-refs", "--all", "--prune", NULL}; static const char *argv_reflog[] = {"reflog", "expire", "--all", NULL}; static const char *argv_repack[MAX_ADD] = {"repack", "-a", "-d", "-l", NULL}; static const char *argv_prune[] = {"prune", NULL};