We definitely should do it with -d.
There really is an advantage. Given that the absence of -d leaves old
objects/packs around, there is a greater chance for still finding an
early copy of the bad object.
But -d would definitely delete old packs that could have had a non
corrupted copy of the desired object.
I think that git-pack-object should grow another flag: --verify-src or
something. That flag would force the verification of the pack checksum
for any pack used for the repack operation. Then it should be used
anytime -d is provided to git-repack. When -d is not provided then we
can skip that --verify-src security measure since nothing gets deleted
and therefore no risk of loosing a good object over a corrupted one
would happen.
Nicolas
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html