From: Raphael Stolt <raphael.stolt@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: Possible bug in referenced configuration file loading
Date: Fri, 26 Oct 2018 09:30:51 +0200 [thread overview]
Message-ID: <CAM-9DY2KVjq2879TJUNhBsRBbAjScMS7U5scP-fAY0NsvCan9A@mail.gmail.com> (raw)
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
next reply other threads:[~2018-10-26 7:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-26 7:30 Raphael Stolt [this message]
2018-10-26 7:58 ` Possible bug in referenced configuration file loading Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM-9DY2KVjq2879TJUNhBsRBbAjScMS7U5scP-fAY0NsvCan9A@mail.gmail.com \
--to=raphael.stolt@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).