Re: git -c var=val not taken into account by git config?
- From
Jeff King <peff@peff.net>
- Date
- May 8, 2012, 09:16 UTC
- Message-ID
- <20120508091606.GB31286@sigill.intra.peff.net>
- In-Reply-To
- <4FA857E3.5030609@videotron.ca>
On Mon, May 07, 2012 at 07:16:51PM -0400, Daniel Villeneuve wrote:
Show 8 quoted lines
> Testing color configuration via scripting, I tried the following command: > > git -c color.diff=always config --get-colorbool diff false > > on a repository with color.diff=auto. > > I'd expect "true" as output, but got "false". "git diff" works as > expected though. Is this an exception for "git config"?
I think you meant "--get-colorbool color.diff"; the fact that you are getting a colorbool does not automatically place the name inside the color.* section.
With that change, it seems to work as expected.
-Peff