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

Re: Possible BUG in 'git config'

From
MCMarco Costalba <mcostalba@gmail.com>
Date
Feb 11, 2007, 17:47 UTC
Message-ID
<e5bfff550702110947s77e8f264k951ae1c158fcee98@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.63.0702111829230.22628@wbgn013.biozentrum.uni-wuerzburg.de>
On 2/11/07, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 5 quoted lines
>
> Yes, this is probably a bug. But it's obvious that if git-config _without_
> --global would _not_ use ~/.gitconfig, that would rather make ~/.gitconfig
> pointless, wouldn't it?
>
Yes.
Show 5 quoted lines
> So yes, the description should mention that this is meant for the case of
> _setting_ variables, not _querying_ variables. The original poster (Sean)
> probaly though -- IMHO correctly -- that querying with --global makes no
> sense.
>

Yes. It makes non sense but it' allowed. So probably, at least for consistency, could exists a query without silent fallback. Something like

git repo-config --local user.name
Marco
Previous: Johannes Schindelin
Message 5 of 5 in “Possible BUG in 'git config'”
  1. Marco CostalbaFeb 11, 2007
  2. Johannes SchindelinFeb 11, 2007
  3. Marco CostalbaFeb 11, 2007
  4. Johannes SchindelinFeb 11, 2007
  5. Marco CostalbaFeb 11, 2007

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.