From: Patrick Steinhardt <ps@pks.im>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Daniel Zoghalchali <daniel@latchkey.dev>,
"Mark C. Chu-Carroll" <markchucarroll@fastmail.com>,
Alessio Attilio <attilio.alessio@protonmail.com>
Subject: Re: [PATCH v2] pack-objects: handle missing objects when excluding promisor objects
Date: Thu, 3 Dec 2026 08:01:21 +0100 [thread overview]
Message-ID: <axETwZYmv6PpxWSV@pks.im> (raw)
In-Reply-To: <axESVVMtGk-QgQOj@pks.im>
On Thu, Dec 03, 2026 at 07:55:21AM +0100, Patrick Steinhardt wrote:
> On Thu, Dec 03, 2026 at 06:34:31AM +0900, Junio C Hamano wrote:
> > Patrick Steinhardt <ps@pks.im> writes:
> >
> > > diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
> > > index ca3a891dfbc..61f2d8a067c 100644
> > > --- a/builtin/pack-objects.c
> > > +++ b/builtin/pack-objects.c
> > > @@ -5084,8 +5084,10 @@ static int is_not_in_promisor_pack_obj(struct object *obj, void *data UNUSED)
> > > .source_infop = &source_info,
> > > };
> > >
> > > - if (odb_read_object_info_extended(the_repository->objects, &obj->oid, &info, 0))
> > > - BUG("should_include_obj should only be called on existing objects");
> > > + if (odb_read_object_info_extended(the_repository->objects, &obj->oid, &info,
> > > + OBJECT_INFO_SKIP_FETCH_OBJECT))
> > > + /* Missing; assume it is a promisor object */
> > > + return 0;
> >
> > This "Missing - assume it is a promisor object" somehow felt familiar
> > in that I recall making a comment on it, and I think it applies equally
> > here, but I do not see it in the list archive on this thread.
> >
> > Screatches head, goes looking ...
> >
> > Ah, I found it.
> >
> > https://lore.kernel.org/git/xmqqzeuwwmt1.fsf@gitster.g/
> >
> > Are these duplicated efforts by any chance? Can we squash them into a
> > single series, taking the best from both?
> >
> > Thanks. I won't be reading any more until next week (still in
> > vacation).
>
> Interesting, didn't notice that patch series. Alessio, are you okay with
> me taking your comment and adding you as a Co-authored-by? Then we can
> take this patch here in favor of yours.
Wait... those patches are the exact same as the patches I wrote, the
tests match 1:1 down to the comments.
Look, I don't mind handing over patches to somebody else, I've got
enough patches in Git. But essentially stealing them from another
contributor without giving attribution or even linking back to the
previous approach is certainly not okay.
Patrick
next prev parent reply other threads:[~2026-12-03 7:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-27 7:00 [PATCH] pack-objects: handle missing objects when excluding promisor objects Patrick Steinhardt
2026-10-27 16:02 ` [PATCH] pack-objects: handle missing objects kkkjwhen " Mark C. Chu-Carroll
2026-10-28 7:26 ` Patrick Steinhardt
2026-10-28 7:37 ` [PATCH] pack-objects: handle missing objects when " Junio C Hamano
2026-10-28 11:50 ` Patrick Steinhardt
2026-11-28 20:10 ` Sami Jawhar
2026-12-02 8:48 ` [PATCH v2] " Patrick Steinhardt
2026-12-02 21:34 ` Junio C Hamano
2026-12-03 6:55 ` Patrick Steinhardt
2026-12-03 7:01 ` Patrick Steinhardt [this message]
2026-12-03 10:10 ` ATTILIO ALESSIO
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=axETwZYmv6PpxWSV@pks.im \
--to=ps@pks.im \
--cc=attilio.alessio@protonmail.com \
--cc=daniel@latchkey.dev \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=markchucarroll@fastmail.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.