From: Josef Weidendorfer Date: Mon, 28 Nov 2005 14:32:35 GMT Subject: Generic configuration plumbing (Was: Re: [RFC 2/2] Automatically transform...) Message-ID: <200511281532.36054.Josef.Weidendorfer@gmx.de> In-Reply-To: <438B021F.5030204@op5.se> On Monday 28 November 2005 14:11, Andreas Ericsson wrote: > Josef Weidendorfer wrote: > > > > To allow for this, git_config() should not be hardcoded to only > > read .git/config, but perhaps a list of files in environment variable > > GIT_CONFIG_FILES. > > > > $HOME/.gitrc:$GIT_DIR/conf/* Yes, perhaps with this as default... > All files could support the freestanding "include" syntax. Better run cpp on the config files before loading ;-) Or provide a hook which returns the config on stdout. The default for .git/hooks/config would be cat $GIT_DIR/config Hmm... this was only meant to be a joke; but now I actually think this is a nice idea as basic configuration mechanism of git plumbing. Josef