git -c var=val not taken into account by git config?
- From
- Daniel Villeneuve <daniel2villeneuve@videotron.ca>
- Date
- May 7, 2012, 23:16 UTC
- Message-ID
- <4FA857E3.5030609@videotron.ca>
Hi,
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"?
Using git version 1.7.10.1. -- Daniel Villeneuve