ignore: respect XDG_CONFIG_DIR/git/config

This commit updates the logic for finding the value of git's
`core.excludesFile` configuration parameter. Namely, we now check
`$XDG_CONFIG_DIR/git/config` in addition to `$HOME/.gitconfig` (where
the latter overrules the former on a knob-by-knob basis).

Fixes #995
This commit is contained in:
Andrew Gallant
2018-07-28 10:04:16 -04:00
parent d857ad6ed3
commit 1611c04e6f
2 changed files with 50 additions and 16 deletions

View File

@@ -109,6 +109,8 @@ Bug fixes:
* [BUG #988](https://github.com/BurntSushi/ripgrep/issues/988):
Fix a bug in the `ignore` crate that prevented the use of explicit ignore
files after disabling all other ignore rules.
* [BUG #995](https://github.com/BurntSushi/ripgrep/issues/995):
Respect `$XDG_CONFIG_DIR/git/config` for detecting `core.excludesFile`.
0.8.1 (2018-02-20)