Re: Git config not working correctly with included configurations

2016-04-12 Thread Rudinei Goi Roecker
Thanks, I didn't knew about that option, as Jeff King said, the 
documentation is way more explicit about how it works in 2.8.0


On 12-04-2016 12:50, Jeff King wrote:

On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:


I'm having a problem with included configurations in ~/.gitconfig, when
using this command:

git config --global user.email

You need to turn on "--includes" explicitly. From "git help config" in
v2.8.0:

   --[no-]includes
 Respect include.* directives in config files when looking up
 values. Defaults to off when a specific file is given (e.g., using
 --file, --global, etc) and on when searching all config files.


I'm using Fedora 23, git version 2.5.5

The rule above has always been the case, but the documentation made it
more clear in v2.8.0.

-Peff

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Git config not working correctly with included configurations

2016-04-12 Thread Jeff King
On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:

> I'm having a problem with included configurations in ~/.gitconfig, when
> using this command:
> 
> git config --global user.email

You need to turn on "--includes" explicitly. From "git help config" in
v2.8.0:

  --[no-]includes
Respect include.* directives in config files when looking up
values. Defaults to off when a specific file is given (e.g., using
--file, --global, etc) and on when searching all config files.

> I'm using Fedora 23, git version 2.5.5

The rule above has always been the case, but the documentation made it
more clear in v2.8.0.

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Git config not working correctly with included configurations

2016-04-12 Thread John Keeping
On Tue, Apr 12, 2016 at 08:25:39AM -0300, Rudinei Goi Roecker wrote:
> I'm having a problem with included configurations in ~/.gitconfig, when 
> using this command:
> 
> git config --global user.email


> It doesn't return anything, in commits it works as intended. The 
> configuration looks like this:

I think you need:

git config --global --includes user.email

or simply:

git config user.email

See the documentation of the --includes and --no-includes options in
git-config(1).
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Git config not working correctly with included configurations

2016-04-12 Thread Rudinei Goi Roecker
I tried changing to ~/.gitconfig.user and 
/home//.gitconfig.user, still causes the same problem


On 12-04-2016 08:56, stefan.na...@atlas-elektronik.com wrote:

Am 12.04.2016 um 13:25 schrieb Rudinei Goi Roecker:

I'm having a problem with included configurations in ~/.gitconfig, when
using this command:

git config --global user.email

It doesn't return anything, in commits it works as intended. The
configuration looks like this:

~/.gitconfig
[include]
path = .gitconfig.user

Maybe you want to use

  path = ~/.gitconfig.user

here.


# ... more configurations

~/.gitconfig.user
[user]
name = My Full Name
email = myem...@example.com

HTH,
   Stefan

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Fwd: Re: Git config not working correctly with included configurations

2016-04-12 Thread stefan.naewe
Sorry, I thought this list has 'reply to all' set by default...

Stefan

 Weitergeleitete Nachricht 
Betreff: Re: Git config not working correctly with included configurations
Datum: Tue, 12 Apr 2016 13:56:57 +0200
Von: Näwe, Stefan <stefan.na...@atlas-elektronik.com>
An: Rudinei Goi Roecker <rudine...@itflex.com.br>

Am 12.04.2016 um 13:25 schrieb Rudinei Goi Roecker:
> I'm having a problem with included configurations in ~/.gitconfig, when
> using this command:
> 
> git config --global user.email
> 
> It doesn't return anything, in commits it works as intended. The
> configuration looks like this:
> 
> ~/.gitconfig
> [include]
>path = .gitconfig.user

Maybe you want to use

 path = ~/.gitconfig.user

here.

> # ... more configurations
> 
> ~/.gitconfig.user
> [user]
>name = My Full Name
>email = myem...@example.com

HTH,
  Stefan
-- 

/dev/random says: CURSOR: What you become when your system crashes.
python -c "print 
'73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')"
 
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9  9666 829B 49C5 9221 27AF