git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* builtin git-bundle - pack contains many more objects than required
@ 2007-03-06  4:17 Mark Levedahl
  2007-03-06  6:18 ` Junio C Hamano
  2007-03-06  7:45 ` [PATCH] git-bundle: fix pack generation Junio C Hamano
  0 siblings, 2 replies; 22+ messages in thread
From: Mark Levedahl @ 2007-03-06  4:17 UTC (permalink / raw)
  To: Johannes.Schindelin, Git Mailing List

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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2007-03-08 20:36 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06  4:17 builtin git-bundle - pack contains many more objects than required Mark Levedahl
2007-03-06  6:18 ` Junio C Hamano
2007-03-06  7:45 ` [PATCH] git-bundle: fix pack generation Junio C Hamano
2007-03-07  1:15   ` Mark Levedahl
2007-03-07  3:01     ` Junio C Hamano
2007-03-07  3:17       ` Mark Levedahl
2007-03-07  3:22         ` Johannes Schindelin
2007-03-07  3:50           ` Mark Levedahl
2007-03-07  4:05             ` Johannes Schindelin
2007-03-07  5:57               ` Junio C Hamano
2007-03-07 16:34               ` Mark Levedahl
2007-03-07 22:35                 ` Johannes Schindelin
2007-03-07 23:17                   ` Linus Torvalds
2007-03-08  0:27                     ` [PATCH] git-bundle: Make thin packs Johannes Schindelin
2007-03-08  0:34                       ` Linus Torvalds
2007-03-08  0:56                         ` Johannes Schindelin
2007-03-08  2:02                       ` Junio C Hamano
2007-03-08 13:07                         ` Johannes Schindelin
2007-03-07 23:32                   ` [PATCH] git-bundle: fix pack generation Junio C Hamano
2007-03-07 23:43                     ` [PATCH] git-bundle: avoid packing objects which are in the prerequisites Johannes Schindelin
2007-03-08 20:36                       ` Mark Levedahl
2007-03-07  1:16   ` [PATCH] git-bundle: fix pack generation Mark Levedahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).