git-user-name icon indicating copy to clipboard operation
git-user-name copied to clipboard

user name in included file is ignored

Open micgro42 opened this issue 5 years ago • 1 comments

The git configuration allows including further files. This is useful, for example when one wants to source-control ones git configuration, but have different user names or email addresses for work and non-work contexts.

However, this library does not seem to parse these included files and thus does not seem to detect the user name included therein.

micgro42 avatar Feb 18 '20 09:02 micgro42

I'm also getting this problem, we could fix this by passing a flag to this package useIncludes: true or something. Then recursively check includes with this package git-config-path.

https://github.com/jonschlinkert/git-user-name/blob/22cf1d3880356c754f7d84dec242987a3b8fcc7e/index.js#L13-L16

benwinding avatar Apr 16 '20 05:04 benwinding