From: Heiko Voigt Date: Thu, 01 Apr 2010 22:03:59 GMT Subject: Re: Is there interest in reading ~/.gitconfig.d/* and /etc/gitconfig.d/*? Message-ID: <20100401220359.GA37149@book.hvoigt.net> In-Reply-To: On Thu, Apr 01, 2010 at 09:20:46PM +0000, Ævar Arnfjörð Bjarmason wrote: > 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