From: Junio C Hamano <gitster@pobox.com>
To: "Julian Maurin via GitGitGadget" <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Jeff King <peff@peff.net>,
"brian m. carlson" <sandals@crustytoothpaste.net>,
Patrick Steinhardt <ps@pks.im>,
Julian Maurin <julian.maurin.dev@proton.me>,
Julian Maurin <julian.maurin.dev+github@proton.me>
Subject: Re: [PATCH v2] remote-curl: honor --no-thin when pushing
Date: Thu, 26 Nov 2026 09:52:37 -0800 [thread overview]
Message-ID: <xmqqo6bbo4yi.fsf@gitster.g> (raw)
In-Reply-To: <pull.2328.v2.git.1795684746909.gitgitgadget@gmail.com> (Julian Maurin via GitGitGadget's message of "Thu, 26 Nov 2026 09:19:06 +0000")
"Julian Maurin via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: Julian Maurin <julian.maurin.dev@proton.me>
>
> "git push --no-thin" to a smart HTTP remote still sends a thin pack.
> transport-helper.c does not forward the "thin" option to remote
> helpers, and remote-curl always runs send-pack with --thin.
>
> If one pushes from a shallow, treeless partial clone
> (--filter=tree:0) to an HTTPS remote, a thin push lazily fetches
> every advertised tip's missing tree from the promisor one by one,
> and --no-thin has no effect over HTTP to avoid it.
Incorporating this use case into the commit message makes the motivation
immediately clear.
In builtin/pack-objects.c:cmd_pack_objects(), creating a thin pack in a
shallow repository passes --objects-edge-aggressive to the internal
rev-list walk, which visits trees of boundary commits; dropping --thin
switches to --objects and avoids those lazy promisor fetches.
Will replace. Let me mark the topic as ready for 'next' unless somebody
objects (but I suspect that the rest of this week is relatively slow, so
I'll wait for a bit longer than usual).
prev parent reply other threads:[~2026-11-26 17:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 8:38 [PATCH] remote-curl: honor --no-thin when pushing Julian Maurin via GitGitGadget
2026-11-25 17:57 ` Junio C Hamano
2026-11-25 20:13 ` Julian Maurin
2026-11-26 9:19 ` [PATCH v2] " Julian Maurin via GitGitGadget
2026-11-26 17:52 ` Junio C Hamano [this message]
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=xmqqo6bbo4yi.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=julian.maurin.dev+github@proton.me \
--cc=julian.maurin.dev@proton.me \
--cc=peff@peff.net \
--cc=ps@pks.im \
--cc=sandals@crustytoothpaste.net \
/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.