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

Re: [PATCH 1/2] Add possibility to store configuration in ~/.config/git/config file

From
Nnguyenhu@minatec.inpg.fr <nguyenhu@minatec.inpg.fr>
Date
May 28, 2012, 16:16 UTC
Message-ID
<20120528181650.Horde.R4mBK3wdC4BPw6Ty4V8EreA@webmail.minatec.grenoble-inp.fr>
jaseem abid <jaseemabid@gmail.com>wrote:
Show 9 quoted lines
> If a new config file gets introduced at `~/.config/git/config`, what
> will be the new order of config file precedence?
>
> `/etc/gitconfig` > `~/.gitconfig` > `~/.config/git/config`  >  
> `.git/config` or
> `/etc/gitconfig` >  `~/.config/git/config` > `~/.gitconfig` > `.git/config` ?
>
> What will be the new flag to access it? I mean anything new like
> --system / --global going to be introduced?

The new order would be: `/etc/gitconfig` > `~/.config/git/config` > `~/.gitconfig` > `.git/config`

There won't be new flag to access it. You can access it with --global only if ~/.gitconfig doesn't exist.

But I will try to create another patch _only_ for reading first. So if git doesn't find a value in ~/.gitconfig or if this file doesn't exist, git will search this value in ~/.config/git/config if this file exists. But for the time being, I don't know how to do it.

Message 1 of 1 in “Re: [PATCH 1/2] Add possibility to store configuration in ~/.config/git/config file”
  1. nguyenhu@minatec.inpg.frMay 28, 2012

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.