Thread (25 messages) 25 messages, 6 authors, 2016-06-15

Re: git gc & deleted branches

From: Nicolas Pitre <hidden>
Date: 2016-06-15 22:44:35

On Thu, 8 May 2008, Jeff King wrote:
On Thu, May 08, 2008 at 10:52:19PM +0200, Guido Ostkamp wrote:
quoted
quoted
And be assured that the objects referenced by a deleted branch will be  
removed from the repository eventually as long as 'git gc --prune' is  
run periodically.
Ok. I did not know about the 'prune' option yet as it neither mentioned in 
the "Git Tutorial" nor "Everyday Git", there only 'git gc' is used with no 
options.
It is deprecated; see 25ee9731.

According to that commit message, prune is now a no-op. However, it
looks like it is still used for trigger a "repack -a" rather than
"repack -A". I don't know if it is worth making that behavior available
through some more sane command line option (I would think people who
really know that they want "repack -a" would just call it).
Well, actually this is a problem.

I think it is a good thing to deprecate gc --prune.  but if that means 
that repack -a is never used then unreferenced and expired objects will 
never be pruned if they're packed if one is always using 'git gc' as we 
are advocating.


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