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

Re: [PATCH 5/3] refs: pass NULL to resolve_refdup() if hash is not needed

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 1, 2017, 08:29 UTC
Message-ID
<xmqqfub3uv8p.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<c18156ec-4c59-eb96-3177-0b1085b0a5c1@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 11 quoted lines
> This allows us to get rid of several write-only variables.
>
> Signed-off-by: Rene Scharfe <l.s.r@web.de>
> ---
>  builtin/checkout.c     | 3 +--
>  builtin/receive-pack.c | 3 +--
>  ref-filter.c           | 7 ++-----
>  reflog-walk.c          | 6 ++----
>  transport.c            | 3 +--
>  wt-status.c            | 4 +---
>  6 files changed, 8 insertions(+), 18 deletions(-)
Both patches looked good to me.

It's a bit surprising that we care so much about where a symbolic ref points at, but it is understandable from the list of files affected.

Previous: René Scharfe
Message 8 of 8 in “refs: make sha1 output parameter of refs_resolve_ref_unsafe() optional”
  1. 1/3 refs: make sha1 output parameter of refs_resolve_ref_unsafe() optionalRené Scharfe, Sep 23, 2017
  2. 2/3 refs: pass NULL to refs_resolve_ref_unsafe() if hash is not neededRené Scharfe, Sep 23, 2017
  3. 3/3 refs: pass NULL to resolve_ref_unsafe() if hash is not neededRené Scharfe, Sep 23, 2017
  4. Junio C HamanoSep 24, 2017
  5. René ScharfeSep 24, 2017
  6. 4/3 refs: pass NULL to refs_resolve_refdup() if hash is not neededRené Scharfe, Oct 1, 2017
  7. 5/3 refs: pass NULL to resolve_refdup() if hash is not neededRené Scharfe, Oct 1, 2017
  8. Junio C HamanoOct 1, 2017

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.