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

Re: [RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig

From
HWHilco Wijbenga <hilco.wijbenga@gmail.com>
Date
May 25, 2012, 17:31 UTC
Message-ID
<CAE1pOi0eY2=eNzuTUVGmHuvfGWvxoXSJUADWr0CfPpVe5ktxow@mail.gmail.com>
In-Reply-To
<20120525181526.Horde.VibLf3wdC4BPv7AeKacSMiA@webmail.minatec.grenoble-inp.fr>
On 25 May 2012 09:15,  <nguyenhu@minatec.inpg.fr> wrote:
Show 12 quoted lines
> Hello,
>
> As you know, git stores its configuration in ~/.gitconfig file and in other
> hidden files at the root of the user's directory.
>
> We would like to have a configuration directory instead of all these
> configuration files by following the XDG specification because:
> - not a lot of hidden files at the root, so better view
> - one directory per software in ~/.config
>
> We would like to give to users the possibility to store configuration in
> ~/.config/git/config file.

This is, of course, highly OS dependent. Ironically, I'd say we need a setting in .gitconfig for it. :-)

There is also /etc(/default|/sysconfig|)/git/config to consider (perhaps for some settings that should be the same for everyone). Better yet, it would be nice if at least some settings could be part of the repository itself (whitespace handling e.g.).

Show 26 quoted lines
> git would store its configuration in ~/.config/git/config file if:
> - this file exists,
> - and ~/.gitconfig file doesn't.
> Otherwise git would store its configuration in ~/.gitconfig as usual.
>
> If you don't create ~/.config/git/config, there is no change.
>
> What do you think about it ?
>
> I will send you a patch today.
>
> Thanks,
>
> Lucien KONG,
> Valentin DUPERRAY,
> Huynh Khoi Nguyen NGUYEN,
> Thomas NGUY,
> Franck JONAS
>
> Grenoble INP ENSIMAG
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Jonathan NiederNext: Jonathan Nieder
Message 5 of 26 in “[RFC] Possibility to choose ~/.config/git/config instead of ~/.gitconfig”
  1. nguyenhu@minatec.inpg.frMay 25, 2012
  2. Jonathan NiederMay 25, 2012
  3. Matthieu MoyMay 25, 2012
  4. Jonathan NiederMay 25, 2012
  5. Hilco WijbengaMay 25, 2012
  6. Jonathan NiederMay 25, 2012
  7. Hilco WijbengaMay 25, 2012
  8. config doc: remove confusion about relative GIT_DIR from FILES sectionJonathan Nieder, May 25, 2012
  9. Jeff KingMay 25, 2012
  10. Junio C HamanoMay 25, 2012
  11. Matthieu MoyMay 25, 2012
  12. Jeff KingMay 25, 2012
  13. Junio C HamanoMay 25, 2012
  14. Jonathan NiederMay 25, 2012
  15. Junio C HamanoMay 25, 2012
  16. Jonathan NiederMay 25, 2012
  17. Junio C HamanoMay 25, 2012
  18. Matthieu MoyMay 25, 2012
  19. Jonathan NiederMay 25, 2012
  20. Matthieu MoyMay 25, 2012
  21. Jonathan NiederMay 25, 2012
  22. Jonathan NiederMay 25, 2012
  23. Matthieu MoyMay 25, 2012
  24. Matthieu MoyMay 25, 2012
  25. Felipe ContrerasMay 26, 2012
  26. Heiko VoigtMay 26, 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.