From: Junio C Hamano Date: Thu, 18 Jan 2007 22:32:58 GMT Subject: Re: [RFC] prune: --expire=seconds Message-ID: <7vy7o0klt1.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <20070118222919.GA22060@moooo.ath.cx> Matthias Lederhofer writes: > This option specifies the minimum age of an object before it > may be removed by prune. The default value is 2 hours and > may be changed using gc.pruneexpire. > > Signed-off-by: Matthias Lederhofer > --- > Shawn O. Pearce wrote: >> If you are going to implement this I would suggest making the default >> age 2 hours and allow the user to configure it from a gc.pruneexpire >> configuration option, much like gc.reflogexpire. > > Here it is, I've set the default value to 2 hours as you suggested. > Any other comments if the default should be a value >0 or 0 to keep > the old behaviour? I am not sure if this is needed, as Shawn explained earlier rounds of loose-objects safety work. If this is something we would want, it might make sense if we allowed "prune --expire='1.day'" syntax ;-).