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

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

From
Patrick Steinhardt <ps@pks.im>
Date
Mar 31, 2025, 07:16 UTC
Message-ID
<Z-pBXOxmtJu9a9R4@pks.im>
In-Reply-To
<20250329120327.105925-2-usmanakinyemi202@gmail.com>
On Sat, Mar 29, 2025 at 05:29:25PM +0530, Usman Akinyemi wrote:
> Since we already teach the `repo_config()` to allow `repo`
> to be NULL, no need to check if `repo` is NULL before calling
> `repo_config()`.

Tiny nit: when you refer to changes made in a previous commit it makes sense to reference that commit via `git log -1 --format=reference` so that outside readers who aren't deeply familiar with the recent changes know where to look.

Other than that this patch looks good to me, thanks!
Patrick
Previous: Usman AkinyemiNext: Usman Akinyemi
Message 3 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.