Record packfile dependencies of a transaction
When a transaction commits, the objects in the quarantine will be packed, and the packfile logged. We need to hold on to the dependencies of the quarantined objects as they are also the dependencies of the packfile. If we don't hold on to them, a concurrent pruning operation could remove the dependencies and result in a corrupt repository when the packfile is applied
In &11242 (closed), we implemented a way to figure the dependencies of the quarantined objects. It's been released in Git v2.43 which is soon rolled out #5713 (closed).
Let's use the new functionality with the rev-list --missing
flag to figure out the packfile dependencies, and record their object IDs so we can hold on to them during pruning.
Edited by Sami Hiltunen