Web lists-archives.com

is it "git gc --prune=now" or "git gc --prune=all"?

  more pedantry, but digging through "git gc", the man page reads:

           Prune loose objects older than date (default is 2 weeks
           ago, overridable by the config variable gc.pruneExpire).
           --prune=all prunes loose objects regardless of their age

but the code for gc.c contains a check for "now" (which actually makes
more sense semantically):

  static void add_repack_all_option(struct string_list *keep_pack)
        if (prune_expire && !strcmp(prune_expire, "now"))
                argv_array_push(&repack, "-a");
        else {
        ... snip ...

while the man page does not seem to mention the possible value of

  am i misreading something? should the man page mention the possible
value of "now" as opposed to "all"?



Robert P. J. Day                                 Ottawa, Ontario, CANADA

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday