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

Re: [PATCH] refs: pass NULL to refs_read_ref_full() because object ID is not needed

From
Derrick Stolee <stolee@gmail.com>
Date
Dec 11, 2019, 19:01 UTC
Message-ID
<3f39d0f8-adfb-5f25-a724-f37f26904fa6@gmail.com>
In-Reply-To
<a762958e-324b-f9a5-96e4-fab0b4b91df8@web.de>
On 12/11/2019 1:46 PM, René Scharfe wrote:
> refs_read_ref_full() wraps refs_resolve_ref_unsafe(), which handles a
> NULL oid pointer of callers not interested in the resolved object ID.
> Pass NULL from files_copy_or_rename_ref() to clarify that it is one
> such caller.

I suppose this could have been grouped/threaded with the other similar patch, but still correct. Thanks!

-Stolee
Previous: René Scharfe
Message 2 of 2 in “refs: pass NULL to refs_read_ref_full() because object ID is not needed”
  1. refs: pass NULL to refs_read_ref_full() because object ID is not neededRené Scharfe, Dec 11, 2019
  2. Derrick StoleeDec 11, 2019

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.