git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: ps/object-info-bits-cleanup

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 11, 2026, 17:35 UTC
Message-ID
<xmqqo6lvuqsg.fsf@gitster.g>
In-Reply-To
<aYyQx8Yvx1n4W5L5@pks.im>
Patrick Steinhardt <ps@pks.im> writes:
Show 19 quoted lines
> On Tue, Feb 10, 2026 at 02:21:34PM -0800, Junio C Hamano wrote:
>> * ps/object-info-bits-cleanup (2026-01-26) 3 commits
>>  - odb: drop gaps in object info flag values
>>  - builtin/fsck: fix flags passed to `odb_has_object()`
>>  - builtin/backfill: fix flags passed to `odb_has_object()`
>> 
>>  A couple of bugs in use of flag bits around odb API has been
>>  corrected, and the flag bits reordered.
>> 
>>  Comments?
>>  source: <20260126-b4-pks-read-object-info-flags-v1-0-e682a003b17c@pks.im>
>
> The discussion on this series has wound down by now, but I'm not sure
> whether anything actionable came out of it. The biggest question was
> around whether or not to use an enum as parameter or an unsigned
> integer, but there wasn't really a clear conclusion.
>
> Should I reroll this series to convert it to an enum, or should I keep
> this as-is and then we can merge this series down?

I do not think we want to go the route that was proposed in <aXhbXQo6taM33m-1@pks.im>, but it's your call. As I said in <xmqqa4y0jop7.fsf@gitster.g>, it would make sense to change parameters that functions that deal with these constants to take enum instead of unsigned, if we were to turn "#define" into enum. It can be done on top as a clean-up if the theme of this topic were something more substantial, but this topic largely being a clean-up itself, I am not sure what the optics would be to have a clean-up topic that requires further clean-up ;-).

Previous: Patrick SteinhardtNext: Patrick Steinhardt
Message 3 of 9 in “What's cooking in git.git (Feb 2026, #04)”
  1. Junio C HamanoFeb 10, 2026
  2. Patrick SteinhardtFeb 11, 2026
  3. Junio C HamanoFeb 11, 2026
  4. Patrick SteinhardtFeb 12, 2026
  5. Junio C HamanoFeb 11, 2026
  6. Samuel AbrahamFeb 12, 2026
  7. Phillip WoodFeb 12, 2026
  8. Junio C HamanoFeb 12, 2026
  9. Phillip WoodFeb 13, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.