Re: [PATCH v2] gc: make --prune useful again by accepting an optional parameter
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 15, 2009, 19:33 UTC
- Message-ID
- <7vprhjlcku.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <alpine.DEB.1.00.0902142306400.10279@pacific.mpi-cbg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 7 quoted lines
> With this patch, "git gc --no-prune" will not prune any loose (and > dangling) object, and "git gc --prune=5.minutes.ago" will prune > all loose objects older than 5 minutes. > > This patch benefitted from suggestions by Thomas Rast and Jan Krüger. > > Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Thanks.
Being able to say --no-$opt to an OPT_STRING to NULLify a variable that has non-NULL default value is somewhat amusing ;-)