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.
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