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

Re: [PATCH] setup.c: don't setup in discover_git_directory()

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 16, 2023, 16:03 UTC
Message-ID
<xmqq1qibs8bl.fsf@gitster.g>
In-Reply-To
<9a7602ba-6903-a94a-3bb5-e51c76f08058@gmx.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 18 quoted lines
>> As explained by 16ac8b8db6 (setup: introduce the
>> discover_git_directory() function, 2017-03-13) and the comment on its
>> declaration, discover_git_directory() is intended to be an entrypoint
>> into setup.c machinery that allows the Git directory to be discovered
>> without side effects, e.g. so that read_early_config() can read
>> ".git/config" before the_repository has been set up.
>>
>> Fortunately, we didn't start to rely on this unintended behavior between
>> then and now, so we let's just remove it. It isn't harming anyone, but
>> it's confusing.
>>
>> Signed-off-by: Glen Choo <chooglen@google.com>
>
> As the author of the commit whose rationale was quoted above, I am
> delighted to provide my ACK to both commit message and diff.
>
> Thanks,
> Johannes
Thanks, both, for writing and reviewing.
Queued.
Previous: Johannes Schindelin
Message 3 of 3 in “setup.c: don't setup in discover_git_directory()”
  1. setup.c: don't setup in discover_git_directory()Glen Choo via GitGitGadget, Jun 14, 2023
  2. Johannes SchindelinJun 16, 2023
  3. Junio C HamanoJun 16, 2023

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.