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

Re: [Question] check_repository_format_gently() is not side-effect-free

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 19, 2026, 18:07 UTC
Message-ID
<xmqqfr5vlmlu.fsf@gitster.g>
In-Reply-To
<c0bb931a-3ee6-416b-8ceb-9fab013a621e@malon.dev>
Tian Yuchen <cat@malon.dev> writes:

The verb "check" does not imply side-effect-free. By checking, each of these functions tries to achieve something, and the way the result of their work is conveyed back to the caller may not necessarily be only by their return values.

The adverb "gently" in this codebase typically means "the variant without gently signals problems by dying. Instead of dying, return to the caller with error code, so that the caller can decide to die".

Previous: Tian YuchenNext: Tian Yuchen
Message 2 of 6 in “[Question] check_repository_format_gently() is not side-effect-free”
  1. Tian YuchenMar 19, 2026
  2. Junio C HamanoMar 19, 2026
  3. Tian YuchenMar 20, 2026
  4. Patrick SteinhardtMar 20, 2026
  5. Junio C HamanoMar 20, 2026
  6. Tian YuchenMar 20, 2026

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.