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

Re: git config: unintuitive behaviour with --global and --no-includes

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 20, 2026, 17:09 UTC
Message-ID
<xmqqse5dd1vz.fsf@gitster.g>
In-Reply-To
<20260720125145.GA5100@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
> IMHO lbmk is wrong to be using "--global" in the first place. Looking at
> the source, it is trying to check whether the user has set up their
> identity. But it is not lbmk's business whether you did it in the
> --global config file, or elsewhere!
Exactly.
Show 9 quoted lines
> Though note there is one other hitch, which is that the user can set
> author.* and committer.* as specific variables, since 39ab4d0951
> (config: allow giving separate author and committer idents, 2019-02-04).
> I suspect not many people do that, but that would also be something that
> a config-specific check would have to handle (but "git var" would do
> automatically).
>
> So I think you might consider sending a bug report to lbmk. Feel free to
> point at this thread, and I'm happy to discuss further with them.
Thanks for your thoughtful and thorough explanation.

The environment variables 'GIT_{AUTHOR,COMMITTER}_{NAME,EMAIL}' also play a part in determining the author andcommitter identities, so 'git var AUTHOR_IDENT' would be the correct choice here.

Previous: Jeff KingNext: Hendrik Jaeger
Message 4 of 5 in “git config: unintuitive behaviour with --global and --no-includes”
  1. Hendrik JaegerJul 20, 2026
  2. Ben KnobleJul 20, 2026
  3. Jeff KingJul 20, 2026
  4. Junio C HamanoJul 20, 2026
  5. Hendrik JaegerJul 21, 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.