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

Re: Is there interest in reading ~/.gitconfig.d/* and /etc/gitconfig.d/*?

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Apr 1, 2010, 22:03 UTC
Message-ID
<20100401220359.GA37149@book.hvoigt.net>
In-Reply-To
<z2s51dd1af81004011420ka5d3a800kf6b3e4591527fc12@mail.gmail.com>
On Thu, Apr 01, 2010 at 09:20:46PM +0000, Ævar Arnfjörð Bjarmason wrote:
Show 5 quoted lines
> I've patched Git to read ~/.gitconfig.d/* and /etc/gitconfig.d/* in
> addition to reading ~/.gitconfig and /etc/gitconfig where it would
> normally do so. the gitconfig.d/* files are read in numeric sort order
> as is the custom with such files and read after the main .gitconfig
> file so they override it.

I like the idea and it would be great if we could extend it to hooks as well. I know that you can implement hooks that themself read such a structure but its not that neat as git handling this itself.

That would be a great way to distribute configurations to users as you could say: "Put this file into your gitconfig.d/hooks.d folder and you get this and that kind of configuration."

cheers Heiko
Previous: Ævar Arnfjörð BjarmasonNext: Peter Krefting
Message 2 of 21 in “Is there interest in reading ~/.gitconfig.d/* and /etc/gitconfig.d/*?”
  1. Ævar Arnfjörð BjarmasonApr 1, 2010
  2. Heiko VoigtApr 1, 2010
  3. Peter KreftingApr 4, 2010
  4. Eli BarzilayApr 4, 2010
  5. Ævar Arnfjörð BjarmasonApr 6, 2010
  6. Jakub NarebskiApr 6, 2010
  7. Hacky version of a glob() driven config includeÆvar Arnfjörð Bjarmason, May 6, 2010
  8. Bert WesargMay 7, 2010
  9. Ævar Arnfjörð BjarmasonMay 7, 2010
  10. Bert WesargMay 7, 2010
  11. Ævar Arnfjörð BjarmasonMay 7, 2010
  12. Jacob HelwigMay 7, 2010
  13. Bert WesargMay 7, 2010
  14. Hacky version of a glob() driven config includeÆvar Arnfjörð Bjarmason, May 7, 2010
  15. Jakub NarebskiMay 7, 2010
  16. Ævar Arnfjörð BjarmasonMay 7, 2010
  17. Jakub NarebskiMay 7, 2010
  18. Ping YinMay 8, 2010
  19. Jakub NarebskiMay 8, 2010
  20. Ping YinMay 8, 2010
  21. Jeff KingMay 8, 2010

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.