What about going in reverse i.e. lets say your photo album uses alternates and now you want to bring in all the referenced objects and erase the alternate?
I assume that would basically involve running git-unpack-objects on each pack file in the alternate, and then copying the objects from there to the photo album, followed by a git-gc and git-prune to get rid of the stuff that was copied unnecessarily?
dustin
· 11 months ago
Yes, unpack objects will do it, and yes it'll make a pretty big mess. I've done that recently with a rails project. Unpacking rails after setting up as an alternate ended up using something like 600MB of space.
Raman Gupta
· 11 months ago
Might be a nice feature to add to your script (with suitable warning about disk space of course).
I assume that would basically involve running git-unpack-objects on each pack file in the alternate, and then copying the objects from there to the photo album, followed by a git-gc and git-prune to get rid of the stuff that was copied unnecessarily?