From: Jeff King <peff@peff.net>
To: matthew sporleder <msporleder@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: bundles discovery and clones
Date: Thu, 13 Jun 2024 06:20:40 -0400 [thread overview]
Message-ID: <20240613102040.GD817573@coredump.intra.peff.net> (raw)
In-Reply-To: <CAHKF-AskyrhNYyzZytarKYbEUMz7MzWZhL9jNbk3VQi7s84ceg@mail.gmail.com>
On Tue, Jun 11, 2024 at 07:14:48AM -0400, matthew sporleder wrote:
> > I don't think the server side is well documented, but peeking at the
> > code, I think you want this on the server:
> >
> > git config uploadpack.advertiseBundleURIs true
> > git config bundle.version 1
> > git config bundle.mode any
> > git config bundle.foo.uri https://example.com/your.bundle
> >
> > And then the clients need to tell Git that they allow bundle transfers:
> >
> > git config --global transfer.bundleURI true
> [...]
>
> It wasn't clear to me what the <id> (bundle.foo in your case) referred
> to. Where did 'foo' come from?
It is not clear to me either. ;) I don't know if <id> is meaningful,
beyond grouping related bundle options into a single stanza. In my
example, "foo" is just a made-up word you can replace with whatever you
want. It is visible to clients at the protocol layer, though I don't
think Git actually shows it to the user.
> Anyway if people are taking suggestions for UX I'll give my $0.02:
> git clone --try-bundle, with --bundle-uri overriding, to allow the
> client to ask the server for bundles that satisfy their request.
Yeah, I looked for something similar at first but couldn't find it. You
can do:
git -c transfer.bundleURI clone ...
-Peff
next prev parent reply other threads:[~2024-06-13 10:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-10 18:25 bundles discovery and clones matthew sporleder
2024-06-11 7:21 ` Jeff King
2024-06-11 11:14 ` matthew sporleder
2024-06-13 10:20 ` Jeff King [this message]
2024-06-15 13:01 ` Karthik Nayak
2024-08-09 12:34 ` Dhruva Krishnamurthy
2024-06-29 2:02 ` Sitaram Chamarty
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=20240613102040.GD817573@coredump.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=msporleder@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;
as well as URLs for NNTP newsgroup(s).