Re: [PATCH GSoC v2 4/6] fetch-object-info: parse type from server response
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 2, 2026, 22:24 UTC
- Message-ID
- <xmqq33ww40vw.fsf@gitster.g>
- In-Reply-To
- <20260802163806.GA21296@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> So for unknown objects, I think a separate bit is less awkward.
OK.
> For signaling "the server refused to tell us this item" we could use > sentinel types like OBJ_NONE. But I don't think that extends to other > fields (e.g., there is no useful sentinel value for "size").
True, unless we abuse things like ((size_t)-1), which I think I saw somewhere in recently posted patches.