Re: [PATCH GSoC v2 4/6] fetch-object-info: parse type from server response

Junio C Hamano <[email protected]> Sun, 02 Aug 2026 15:24:03 -0700
Newsgroups org.kernel.vger.git
Message-ID <[email protected]>
Jeff King <[email protected]> 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.