From: Junio C Hamano <gitster@pobox.com>
To: Patrick Steinhardt <ps@pks.im>
Cc: git@vger.kernel.org, Daniel Zoghalchali <daniel@latchkey.dev>,
"Mark C. Chu-Carroll" <markchucarroll@fastmail.com>
Subject: Re: [PATCH v2] pack-objects: handle missing objects when excluding promisor objects
Date: Thu, 03 Dec 2026 06:34:31 +0900 [thread overview]
Message-ID: <xmqqtskvz7rs.fsf@gitster.g> (raw)
In-Reply-To: <20261202-b4-pks-pack-objects-repack-links-with-missing-objects-v2-1-23ad4a9a783e@pks.im> (Patrick Steinhardt's message of "Wed, 02 Dec 2026 09:48:05 +0100")
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).
prev parent reply other threads:[~2026-12-02 21:34 UTC|newest]
Thread overview: 8+ 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 [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=xmqqtskvz7rs.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=daniel@latchkey.dev \
--cc=git@vger.kernel.org \
--cc=markchucarroll@fastmail.com \
--cc=ps@pks.im \
/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