{"thread":{"id":"42000","subject":"Git config not working correctly with included configurations","startedAt":"2016-04-12T11:25:39Z","lastAt":"2016-04-12T16:03:58Z","messageCount":4,"participants":["Rudinei Goi Roecker","John Keeping","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"283178","messageId":"assp.0910338c53.570CDB33.9020300@itflex.com.br","threadId":"42000","inReplyTo":null,"subject":"Git config not working correctly with included configurations","fromName":"Rudinei Goi Roecker","fromEmail":"rudineigr@itflex.com.br","sentAt":"2016-04-12T11:25:39Z","receivedAt":"2016-04-12T11:25:39Z","isPatch":false,"sender":{"key":"rudineigr@itflex.com.br","avatar":"https://gravatar.com/avatar/fc3a1ae5372f7ca383fcb5e3c97dad52d5490026edb941342abb987d13b6cd47?d=mp&s=160"},"body":"I'm having a problem with included configurations in ~/.gitconfig, when \nusing this command:\n\ngit config --global user.email\n\nIt doesn't return anything, in commits it works as intended. The \nconfiguration looks like this:\n\n~/.gitconfig\n[include]\n   path = .gitconfig.user\n# ... more configurations\n\n~/.gitconfig.user\n[user]\n   name = My Full Name\n   email = myemail@example.com\n\nI'm using Fedora 23, git version 2.5.5\n"},{"id":"283182","messageId":"20160412130236.GA11013@serenity.lan","threadId":"42000","inReplyTo":"assp.0910338c53.570CDB33.9020300@itflex.com.br","subject":"Re: Git config not working correctly with included configurations","fromName":"John Keeping","fromEmail":"john@keeping.me.uk","sentAt":"2016-04-12T13:02:36Z","receivedAt":"2016-04-12T13:02:36Z","isPatch":false,"sender":{"key":"john@keeping.me.uk","avatar":"https://avatars.githubusercontent.com/u/1702081?v=4"},"body":"On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:\n> I'm having a problem with included configurations in ~/.gitconfig, when \n> using this command:\n> \n> git config --global user.email\n\n\n> It doesn't return anything, in commits it works as intended. The \n> configuration looks like this:\n\nI think you need:\n\n\tgit config --global --includes user.email\n\nor simply:\n\n\tgit config user.email\n\nSee the documentation of the --includes and --no-includes options in\ngit-config(1).\n"},{"id":"283193","messageId":"20160412155000.GA21249@sigill.intra.peff.net","threadId":"42000","inReplyTo":"assp.0910338c53.570CDB33.9020300@itflex.com.br","subject":"Re: Git config not working correctly with included configurations","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2016-04-12T15:50:01Z","receivedAt":"2016-04-12T15:50:01Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:\n\n> I'm having a problem with included configurations in ~/.gitconfig, when\n> using this command:\n> \n> git config --global user.email\n\nYou need to turn on \"--includes\" explicitly. From \"git help config\" in\nv2.8.0:\n\n  --[no-]includes\n    Respect include.* directives in config files when looking up\n    values. Defaults to off when a specific file is given (e.g., using\n    --file, --global, etc) and on when searching all config files.\n\n> I'm using Fedora 23, git version 2.5.5\n\nThe rule above has always been the case, but the documentation made it\nmore clear in v2.8.0.\n\n-Peff\n"},{"id":"283195","messageId":"assp.09106d5289.570D1C6E.50303@itflex.com.br","threadId":"42000","inReplyTo":"20160412155000.GA21249@sigill.intra.peff.net","subject":"Re: Git config not working correctly with included configurations","fromName":"Rudinei Goi Roecker","fromEmail":"rudineigr@itflex.com.br","sentAt":"2016-04-12T16:03:58Z","receivedAt":"2016-04-12T16:03:58Z","isPatch":false,"sender":{"key":"rudineigr@itflex.com.br","avatar":"https://gravatar.com/avatar/fc3a1ae5372f7ca383fcb5e3c97dad52d5490026edb941342abb987d13b6cd47?d=mp&s=160"},"body":"Thanks, I didn't knew about that option, as Jeff King said, the \ndocumentation is way more explicit about how it works in 2.8.0\n\nOn 12-04-2016 12:50, Jeff King wrote:\n> On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:\n>\n>> I'm having a problem with included configurations in ~/.gitconfig, when\n>> using this command:\n>>\n>> git config --global user.email\n> You need to turn on \"--includes\" explicitly. From \"git help config\" in\n> v2.8.0:\n>\n>    --[no-]includes\n>      Respect include.* directives in config files when looking up\n>      values. Defaults to off when a specific file is given (e.g., using\n>      --file, --global, etc) and on when searching all config files.\n>\n>> I'm using Fedora 23, git version 2.5.5\n> The rule above has always been the case, but the documentation made it\n> more clear in v2.8.0.\n>\n> -Peff\n"}]}