Re: git gc & deleted branches
- From
Jeff King <peff@peff.net>
- Date
- May 8, 2008, 21:44 UTC
- Message-ID
- <20080508214454.GA1939@sigill.intra.peff.net>
- In-Reply-To
- <48237344.6070405@nrlssc.navy.mil>
On Thu, May 08, 2008 at 04:40:20PM -0500, Brandon Casey wrote:
> The 'prune --expire' behavior is based on object mtime (i.e. file > modification time). That is lost once something is packed right?
Yes. You would have to use the pack mtime. But of course you would have to actually _leave_ them in a pack, or they would just keep getting added to the new pack.
Show 5 quoted lines
> I was thinking that either repack or pack-objects could be modified to > unpack those unreachable objects and leave them loose, and also give > them the timestamp of the pack file they came from. Then the --expire > behavior of git-prune could work normally and remove them. This seems > like it would work nicely since prune follows repack in git-gc.
That is sensible, I think.
-Peff