Re: [PATCH 1/4] config: add include directive
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jan 27, 2012, 00:02 UTC
- Message-ID
- <CACBZZX5_qjC6WZsZ9hKvSR5vQJPs=jgWn-R4EnWZGVq+RvjRyg@mail.gmail.com>
- In-Reply-To
- <20120126073752.GA30474@sigill.intra.peff.net>
On Thu, Jan 26, 2012 at 08:37, Jeff King <peff@peff.net> wrote:
Show 5 quoted lines
> This patch introduces an include directive for config files. > It looks like: > > [include] > path = /path/to/file
Very nice, I'd been meaning to resurrect my gitconfig.d series, and this series implements a lot of the structural changes needed for that sort of thing.
What do you think of an option (e.g. include.gitconfig_d = true) that would cause git to look in:
/etc/gitconfig.d/*
~/.gitconfig.d/*
.git/config.d/*As well as the usual:
/etc/gitconfig
~/.gitconfig
.git/configIt would make including third-party config easy since you could just symlink it in, and it would follow the convention of a lot of other programs that have a foo and a foo.d directory.