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

Re: [PATCH v2 1/1] builtin/update-server-info: remove unnecessary if statement

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 7, 2025, 15:49 UTC
Message-ID
<xmqqa58snf9c.fsf@gitster.g>
In-Reply-To
<CAPig+cShdouOzG_jKz_Z6+bSprZ5ZEsx9wZR-_LuD1P2kaOWwg@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 12 quoted lines
> On Sun, Apr 6, 2025 at 8:15 AM Usman Akinyemi
> <usmanakinyemi202@gmail.com> wrote:
>> Since we already teach the `repo_config()` in "1a764cdbdc
>> (Merge branch 'ua/some-builtins-wo-the-repository', 2025-03-26)"
>> to allow `repo` to be NULL, no need to check if `repo` is NULL
>> before calling `repo_config()`.
>
> Okay, makes sense. However...
>
> By referencing only the merge commit in the above message, you force
> reviewers and future readers to chase down and locate the actual
> commit[*] which taught repo_config() to accept NULL for `repo`.
Thanks for raising this.  

When referring to an entire long series as a whole, a reference to the concluding merge might be more useful, as the topic name (hopefully) concisely summarizes what the topic was. However, referring to a single patch series, or a single step in a longer topic, ...

> To be
> more friendly to those people, you should help them by instead
> referencing the commit[*] itself.
... this is a useful general advice.
> [*]: f29f1990b5 (config: teach repo_config to allow `repo` to be NULL,
> 2025-03-08)
>
>> Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Previous: Eric SunshineNext: Usman Akinyemi
Message 7 of 9 in “remove unnecessary if statement”
  1. 0/1 remove unnecessary if statementUsman Akinyemi, Mar 29, 2025
  2. 1/1 builtin/update-server-info: remove unnecessary if statementUsman Akinyemi, Mar 29, 2025
  3. Patrick SteinhardtMar 31, 2025
  4. 0/1 remove unnecessary if statementUsman Akinyemi, Apr 6, 2025
  5. 1/1 builtin/update-server-info: remove unnecessary if statementUsman Akinyemi, Apr 6, 2025
  6. Eric SunshineApr 7, 2025
  7. Junio C HamanoApr 7, 2025
  8. 0/1 remove unnecessary if statementUsman Akinyemi, Apr 7, 2025
  9. 1/1 builtin/update-server-info: remove unnecessary if statementUsman Akinyemi, Apr 7, 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.