From: Taylor Blau <ttaylorr@openai.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: friel@openai.com, git@vger.kernel.org, peff@peff.net,
stolee@gmail.com, me@ttaylorr.com, ps@pks.im,
jonathantanmy@fastmail.com
Subject: Re: [RFC PATCH] index-pack: optionally allow duplicate objects
Date: Wed, 29 Jul 2026 16:23:38 -0500 [thread overview]
Message-ID: <ampvWrDaNqmNdlUm@com-79390> (raw)
In-Reply-To: <xmqqtspho7tk.fsf@gitster.g>
On Wed, Jul 29, 2026 at 01:32:39PM -0700, Junio C Hamano wrote:
> Taylor Blau <ttaylorr@openai.com> writes:
>
> > If we can find useful ways to combine the ideas above with Git's in-tree
> > implementation of upload-pack, one could imagine that Git itself may
> > eventually send packs containing duplicate copies of some object(s)
> > behind a capability. In other words, for clients that know how to
> > process such a pack, the server may wish to ask the client to do just
> > that in the name of saving some CPU cycles necessary to generate a pack
> > that doesn't have any duplicate objects.
>
> I can live with such an extension as long as we teach the receiving
> end to deduplicate the extra copy. Leaving packs with duplicate
> objects on disk is a completely different story, as it will become a
> source of spreading such broken packs elsewhere, though.
I am trying to nudge us in the direction of reconsidering whether a
pack containing duplicate objects *is* broken. After reading some of the
historical discussions on the list, the only "broken" portion here is
client-side support, which is what my series is trying to address.
> > But I would note that having packs containing duplicate objects is not a
> > new repository state for Git. Non-strict `index-pack` accepts duplicate
> > entries today, and shallow and filtered clones can store the same pack.
>
> The same as what???
The same pack meaning the one which contains duplicate objects. As I
understand, Friel configured clients to have a shallow depth equal to
the 32-bit unsigned maximum value (which is gross), but does cause us to
run "index-pack" without "--strict".
Thanks,
Taylor
prev parent reply other threads:[~2026-07-29 21:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-28 4:25 [RFC PATCH] index-pack: optionally allow duplicate objects friel
2026-07-28 23:29 ` Taylor Blau
2026-07-29 1:41 ` Junio C Hamano
2026-07-29 19:18 ` Taylor Blau
2026-07-29 20:32 ` Junio C Hamano
2026-07-29 21:17 ` friel
2026-07-29 21:29 ` Taylor Blau
2026-07-29 21:23 ` Taylor Blau [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=ampvWrDaNqmNdlUm@com-79390 \
--to=ttaylorr@openai.com \
--cc=friel@openai.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jonathantanmy@fastmail.com \
--cc=me@ttaylorr.com \
--cc=peff@peff.net \
--cc=ps@pks.im \
--cc=stolee@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 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.