mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* is it "git gc --prune=now" or "git gc --prune=all"?
@ 2019-03-02  8:26 Robert P. J. Day
  2019-03-05  5:03 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Robert P. J. Day @ 2019-03-02  8:26 UTC (permalink / raw)
  To: Git Mailing list

  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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-11  2:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-02  8:26 is it "git gc --prune=now" or "git gc --prune=all"? Robert P. J. Day
2019-03-05  5:03 ` Jeff King
2019-03-06  0:08   ` Junio C Hamano
2019-03-09 18:13     ` Robert P. J. Day
2019-03-11  2:18       ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).