From: Mark Levedahl <mlevedahl@gmail.com>
To: Johannes.Schindelin@gmx.de, Git Mailing List <git@vger.kernel.org>
Subject: builtin git-bundle - pack contains many more objects than required
Date: Mon, 05 Mar 2007 23:17:04 -0500 [thread overview]
Message-ID: <45ECEB40.4000907@gmail.com> (raw)
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
next reply other threads:[~2007-03-06 4:17 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 4:17 Mark Levedahl [this message]
2007-03-06 6:18 ` builtin git-bundle - pack contains many more objects than required 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45ECEB40.4000907@gmail.com \
--to=mlevedahl@gmail.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.