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

Re: [PATCH] refs: dereference the value of the required pointer

From
Karthik Nayak <karthik.188@gmail.com>
Date
Dec 25, 2025, 21:23 UTC
Message-ID
<CAOLa=ZQwrdXOocxB1A5TyGYBecQYcM2r2p8ZUZfBiav04cuSGw@mail.gmail.com>
In-Reply-To
<xmqqzf7fw2hd.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 15 quoted lines
> "AZero13 via GitGitGadget" <gitgitgadget@gmail.com> writes:
>
>> From: Greg Funni <gfunni234@gmail.com>
>>
>> Currently, this always prints yes because required is non-null.
>>
>> This is the wrong behavior. The boolean must be
>> dereferenced.
>
> The line is blamed to f6c5ca38 (refs: add a `optimize_required`
> field to `struct ref_storage_be`, 2025-11-08); the author CC'ed for
> an Ack.
>
> Thanks.
>
My responses are a bit slow due to being on holiday.
The patch looks good to me, the fix makes sense. Thanks both!
Previous: Junio C HamanoNext: Patrick Steinhardt
Message 3 of 4 in “refs: dereference the value of the required pointer”
  1. refs: dereference the value of the required pointerAZero13 via GitGitGadget, Dec 18, 2025
  2. Junio C HamanoDec 19, 2025
  3. Karthik NayakDec 25, 2025
  4. Patrick SteinhardtDec 19, 2025

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.