Re: Is there interest in reading ~/.gitconfig.d/* and /etc/gitconfig.d/*?
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Apr 6, 2010, 08:15 UTC
- Message-ID
- <u2i51dd1af81004060115t5f837840z5adcf83622fa8882@mail.gmail.com>
- In-Reply-To
- <19384.17579.205005.86711@winooski.ccs.neu.edu>
On Sun, Apr 4, 2010 at 07:50, Eli Barzilay <eli@barzilay.org> wrote:
> Isn't it better to have a way to include files instead?
Probably yes. Programs like Apache HTTPD, rsyslog and others just use ${foo}conf.d by convention by supporting config inclusion.
What would be the ideal config syntax for that? AFAICT git-config doesn't (yet) support top-level keys so maybe this:
[INCLUDE]
path = ~/.gitconfig.d/*Or if top-level support was added:
INCLUDE = ~/.gitconfig.d/*