builtin-bundle in version v1.5.0.3-271-g5ced057 (commit
5ced0572217f82f20c4a3460) (and probably before) includes far more
objects in the pack than are actually necessary. Comparison to the
original shell scripts I wrote shows the prerequisites and refs always
agree between those (and that is what I tested before), so the problem
is apparently in the arguments as passed to pack-objects. I confess to
not understanding the revision walking code called from
builtin-bundle.c, so I do not have a patch.
However, a simple example:
git>git-rev-list --objects HEAD~1..HEAD
5ced0572217f82f20c4a3460492768e07c08aeea
1d30eaabe4b6f7218e4e4cfff5670a493aa7358e
2a1d6a2be1511f65b601897f05962e5f673257d8 contrib
cbd77b2f57114d4fa2f119f1b1ee17968d6d67d4 contrib/emacs
8554e3967cc692c6916e5aee35952074d07e8bf0 contrib/emacs/Makefile
shows that the bundle for this case should have five objects as shown.
In this case, 916 objects are actually included in the pack when executing
git bundle create test.bdl HEAD~1..HEAD
Mark
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html