Thread (5 messages) flat view 5 messages, 2 authors, 2016-06-15

Re: [PATCH] prune-packed: new option --min-age=N

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:42:49

Matthias Lederhofer [off-list ref] wrote:
I just remembered people were warning about automatic prune-packed
(e.g. cron), so this patch does not make much sense anymore.
I think we've resolved it.  There may be some hole we aren't aware
of, but I doubt one exists.  The last hole was packs could be
removed by repack while they were still being brought in during
push or 'fetch -k', but that was fixed with the .keep file.
 
Any comments about adding such an option to git prune for unpacked
objects?  This would allow to run git prune automatically on
repositories while new objects are created.
An age makes sense on just plain prune.  If the loose object was
last modified several hours ago and its not being referenced by
anything currently, its probably safe to remove.

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.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help