git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Possible bug in referenced configuration file loading
@ 2018-10-26  7:30 Raphael Stolt
  2018-10-26  7:58 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Raphael Stolt @ 2018-10-26  7:30 UTC (permalink / raw)
  To: Git Mailing List

Configuration for global ignore patterns in ~/.config/git/config:

[core]
    excludesfile = .gitignore

doesn't get looked up per default in ~/.config/git/ which might be
considered a bug as the .gitignore file isn't loaded. It's only loaded
when .gitignore is located in $HOME or explicitly referenced via
~/.config/git/.gitignore.

Configuration for a conditional include also in ~/.config/git/config:

[includeIf "gitdir:~/Work/git-repos/"]
    path = .oss-gitconfig

does get looked up per default in ~/.config/git/ and  therefor the
.oss-gitconfig is loaded.

So there seems to be a difference in Git's configuration loading strategies.

Environment details:

macOS High Sierra
git version 2.19.1

Windows 10
git version 2.16.1.windows.2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-10-26  7:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-26  7:30 Possible bug in referenced configuration file loading Raphael Stolt
2018-10-26  7:58 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).