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
Jonathan Nieder <jrnieder@gmail.com>
Date
May 25, 2012, 18:44 UTC
Message-ID
<20120525184408.GA4740@burratino>
In-Reply-To
<7vsjeortwu.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes:
Show 7 quoted lines
>> If I understand correctly, the proposal that started this thread was
>> to give people a chance to tidy their HOME directory by moving
>> personal git configuration under ~/.config/git/.  
>
> So it is exactly "I do not want ~/.gitconfig, I want ~/.config/git", no?
>
> That is something distro should be able to decide.

Except that there is nothing distro-specific about it. Do you really want the config file to have a different name depending on whether one is using Debian, Fedora, Mac OS X, Gentoo, one of the various builds of git on Windows, Solaris, ...?

Besides, with my distro package maintainer hat on, I can tell you that switching the config file to ~/.config/git and not reading ~/.gitconfig would be a complete nonstarter. That would mean that the existing user configuration for everyone would just seem to disappear.

Once the code to read both files is written, why would one want that to be distro-specific and not something shared?

Hoping that clarifies a little, Jonathan

Previous: Junio C HamanoNext: Junio C Hamano
Message 16 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.