Explicitly include user gitconfig

This bypasses an annoying issue when using both ~/.gitconfig and
~/.user.gitconfig, which is that there is no guarantee of the order
these configs are loaded. This means that configs loaded in
~/.user.gitconfig (which in this case is intended to override
~/.gitconfig) may not actually override those found in ~/.gitconfig. By
using `include.path`, they are loaded a second time, but it guarantees
they are loaded after all the configs in ~/.gitconfig, ensuring they are
used in cases where the key is present in both files.
master
Jordan Atwood 2 years ago
parent b66a5795a4
commit de8ad4ac08
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 3
      src/.gitconfig

@ -81,3 +81,6 @@
[user] [user]
name = Jordan Atwood name = Jordan Atwood
email = nightfirecat@nightfirec.at email = nightfirecat@nightfirec.at
[include]
path = ~/.user.gitconfig

Loading…
Cancel
Save