Re: [PATCH 0/2] config includes, take 2
- From
Jeff King <peff@peff.net>
- Date
- Feb 7, 2012, 19:21 UTC
- Message-ID
- <20120207192102.GA887@sigill.intra.peff.net>
- In-Reply-To
- <m31uq63143.fsf@localhost.localdomain>
On Tue, Feb 07, 2012 at 11:16:47AM -0800, Jakub Narebski wrote:
Show 18 quoted lines
> > Git-config could potentially help with that (and even simplify the > > current code) by allowing something like: > > > > $ git config --list-with-sources > > /home/peff/.gitconfig user.name=Jeff King > > /home/peff/.gitconfig user.email=peff@peff.net > > .git/config core.repositoryformatversion=0 > > .git/config core.bare=false > > [etc] > > > > (you would use the "-z" form, of course, and the filenames would be > > NUL-separated, but I made up a human-readable output format above for > > illustration purposes). > > That would be _very_ nice to have (even without includes support). > > Filenames would be git-quoted like in ls-tree / diff-tree output without -z, > isn't it? And is that TAB or SPC as a separator?
Yeah, the output above is just illustrative. Without -z, I would do quoted filename, TAB, and then $KEY=$VALUE (I didn't check whether we quote an "=" in the subsection of a key, but we probably should).
-Peff