{"thread":{"id":"30462","subject":"git -c var=val not taken into account by git config?","startedAt":"2012-05-07T23:16:51Z","lastAt":"2012-05-08T12:56:57Z","messageCount":3,"participants":["Daniel Villeneuve","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"191052","messageId":"4FA857E3.5030609@videotron.ca","threadId":"30462","inReplyTo":null,"subject":"git -c var=val not taken into account by git config?","fromName":"Daniel Villeneuve","fromEmail":"daniel2villeneuve@videotron.ca","sentAt":"2012-05-07T23:16:51Z","receivedAt":"2012-05-07T23:16:51Z","isPatch":false,"sender":{"key":"daniel2villeneuve@videotron.ca","avatar":null},"body":"Hi,\n\nTesting color configuration via scripting, I tried the following command:\n\ngit -c color.diff=always config --get-colorbool diff false\n\non a repository with color.diff=auto.\n\nI'd expect \"true\" as output, but got \"false\".  \"git diff\" works as \nexpected though.  Is this an exception for \"git config\"?\n\nUsing git version 1.7.10.1.\n--\nDaniel Villeneuve\n"},{"id":"191076","messageId":"20120508091606.GB31286@sigill.intra.peff.net","threadId":"30462","inReplyTo":"4FA857E3.5030609@videotron.ca","subject":"Re: git -c var=val not taken into account by git config?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2012-05-08T09:16:06Z","receivedAt":"2012-05-08T09:16:06Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, May 07, 2012 at 07:16:51PM -0400, Daniel Villeneuve wrote:\n\n> Testing color configuration via scripting, I tried the following command:\n> \n> git -c color.diff=always config --get-colorbool diff false\n> \n> on a repository with color.diff=auto.\n> \n> I'd expect \"true\" as output, but got \"false\".  \"git diff\" works as\n> expected though.  Is this an exception for \"git config\"?\n\nI think you meant \"--get-colorbool color.diff\"; the fact that you are\ngetting a colorbool does not automatically place the name inside the\ncolor.* section.\n\nWith that change, it seems to work as expected.\n\n-Peff\n"},{"id":"191086","messageId":"4FA91819.20301@videotron.ca","threadId":"30462","inReplyTo":"20120508091606.GB31286@sigill.intra.peff.net","subject":"Re: git -c var=val not taken into account by git config?","fromName":"Daniel Villeneuve","fromEmail":"daniel2villeneuve@videotron.ca","sentAt":"2012-05-08T12:56:57Z","receivedAt":"2012-05-08T12:56:57Z","isPatch":false,"sender":{"key":"daniel2villeneuve@videotron.ca","avatar":null},"body":"On 08/05/12 05:16 AM, Jeff King wrote:\n> On Mon, May 07, 2012 at 07:16:51PM -0400, Daniel Villeneuve wrote:\n>\n>> Testing color configuration via scripting, I tried the following command:\n>>\n>> git -c color.diff=always config --get-colorbool diff false\n>>\n>> on a repository with color.diff=auto.\n>>\n>> I'd expect \"true\" as output, but got \"false\".  \"git diff\" works as\n>> expected though.  Is this an exception for \"git config\"?\n> I think you meant \"--get-colorbool color.diff\"; the fact that you are\n> getting a colorbool does not automatically place the name inside the\n> color.* section.\n>\n> With that change, it seems to work as expected.\n>\n> -Peff\n>\nIndeed, and the example was mentioning \"color.diff\".  My error.  Giving \njust \"diff\", I was getting results from color.ui instead.\n\nRegards,\n--\nDaniel\n"}]}