Git development
 help / color / mirror / Atom feed
From: Patrick Steinhardt <ps@pks.im>
To: Karthik Nayak <karthik.188@gmail.com>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>,
	Elijah Newren <newren@gmail.com>,
	Justin Tobler <jltobler@gmail.com>
Subject: Re: [PATCH v3 6/6] bundle: generate packfiles via the object database
Date: Thu, 20 Aug 2026 13:38:39 +0200	[thread overview]
Message-ID: <aobnP3bJ1SQpYoFa@pks.im> (raw)
In-Reply-To: <CAOLa=ZQ7-_=T1NSXY433oME8OoddJOuLX0wmdbk2ocQ0JTAuKQ@mail.gmail.com>

On Thu, Aug 20, 2026 at 07:19:45AM -0400, Karthik Nayak wrote:
> Patrick Steinhardt <ps@pks.im> writes:
> 
> > git-bundle(1) spawns git-pack-objects(1) directly to generate the pack
> > data that gets appended to the bundle header. While bundles are not
> > part of the wire protocol, they are a transfer mechanism for packs all
> > the same, so convert them to use the pack generation interface of the
> > object database as well.
> >
> > This makes the pack generator the single spawn point for all pack
> > streams that leave the repository, leaving only local maintenance tasks
> > like git-repack(1) with direct knowledge of git-pack-objects(1).
> >
> > Signed-off-by: Patrick Steinhardt <ps@pks.im>
> > ---
> >  builtin/bundle.c | 10 +-------
> >  bundle.c         | 69 ++++++++++++++++++++++++++++----------------------------
> >  bundle.h         |  3 +--
> >  3 files changed, 37 insertions(+), 45 deletions(-)
> >
> > diff --git a/builtin/bundle.c b/builtin/bundle.c
> > index bfafadc984..de86e092a6 100644
> > --- a/builtin/bundle.c
> > +++ b/builtin/bundle.c
> > @@ -69,7 +69,6 @@ static int parse_options_cmd_bundle(int argc,
> >
> >  static int cmd_bundle_create(int argc, const char **argv, const char *prefix,
> >  			     struct repository *repo UNUSED) {
> 
> This '{' should be on the next line, but that's not on you :)

I can sneak in a small fixup. Doesn't hurt, I guess.

Patrick

  reply	other threads:[~2026-08-20 11:38 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07 10:45 [PATCH 0/5] odb: make packfile generation pluggable Patrick Steinhardt
2026-08-07 10:45 ` [PATCH 1/5] odb: introduce interface to generate packfiles Patrick Steinhardt
2026-08-07 10:45 ` [PATCH 2/5] upload-pack: generate packfiles via the object database Patrick Steinhardt
2026-08-07 10:45 ` [PATCH 3/5] send-pack: " Patrick Steinhardt
2026-08-07 10:45 ` [PATCH 4/5] builtin/bundle: refactor option handling for progress meter Patrick Steinhardt
2026-08-07 10:45 ` [PATCH 5/5] bundle: generate packfiles via the object database Patrick Steinhardt
2026-08-13 18:00   ` Junio C Hamano
2026-08-14  7:40     ` Patrick Steinhardt
2026-08-07 21:05 ` [PATCH 0/5] odb: make packfile generation pluggable Junio C Hamano
2026-08-10  5:25   ` Patrick Steinhardt
2026-08-12 23:41     ` Taylor Blau
     [not found]       ` <an1ajMjVRUsfu-lv@pks.im>
2026-08-13 17:35         ` Junio C Hamano
2026-08-17  5:39 ` [PATCH v2 0/6] " Patrick Steinhardt
2026-08-17  5:39   ` [PATCH v2 1/6] odb: introduce interface to generate packfiles Patrick Steinhardt
2026-08-19 16:56     ` Elijah Newren
2026-08-20  6:01       ` Patrick Steinhardt
2026-08-17  5:39   ` [PATCH v2 2/6] upload-pack: generate packfiles via the object database Patrick Steinhardt
2026-08-17  5:39   ` [PATCH v2 3/6] send-pack: " Patrick Steinhardt
2026-08-17  5:39   ` [PATCH v2 4/6] builtin/bundle: refactor option handling for progress meter Patrick Steinhardt
2026-08-17  5:39   ` [PATCH v2 5/6] bundle: get (mostly) rid of `the_repository` Patrick Steinhardt
2026-08-17 16:47     ` Junio C Hamano
2026-08-18  5:26       ` Patrick Steinhardt
2026-08-17  5:39   ` [PATCH v2 6/6] bundle: generate packfiles via the object database Patrick Steinhardt
2026-08-19 21:52     ` Justin Tobler
2026-08-20  6:01       ` Patrick Steinhardt
2026-08-20  7:55 ` [PATCH v3 0/6] odb: make packfile generation pluggable Patrick Steinhardt
2026-08-20  7:55   ` [PATCH v3 1/6] odb: introduce interface to generate packfiles Patrick Steinhardt
2026-08-20 10:16     ` Karthik Nayak
2026-08-20 11:38       ` Patrick Steinhardt
2026-08-20 17:04     ` Junio C Hamano
2026-08-20  7:55   ` [PATCH v3 2/6] upload-pack: generate packfiles via the object database Patrick Steinhardt
2026-08-20 10:24     ` Karthik Nayak
2026-08-20 11:38       ` Patrick Steinhardt
2026-08-20  7:55   ` [PATCH v3 3/6] send-pack: " Patrick Steinhardt
2026-08-20  7:55   ` [PATCH v3 4/6] builtin/bundle: refactor option handling for progress meter Patrick Steinhardt
2026-08-20 11:17     ` Karthik Nayak
2026-08-20  7:55   ` [PATCH v3 5/6] bundle: get (mostly) rid of `the_repository` Patrick Steinhardt
2026-08-20  7:55   ` [PATCH v3 6/6] bundle: generate packfiles via the object database Patrick Steinhardt
2026-08-20 11:19     ` Karthik Nayak
2026-08-20 11:38       ` Patrick Steinhardt [this message]
2026-08-20 11:20   ` [PATCH v3 0/6] odb: make packfile generation pluggable Karthik Nayak
2026-08-20 11:40     ` Patrick Steinhardt

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=aobnP3bJ1SQpYoFa@pks.im \
    --to=ps@pks.im \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jltobler@gmail.com \
    --cc=karthik.188@gmail.com \
    --cc=newren@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox