diff options
author | Johannes Altmanninger <aclopte@gmail.com> | 2019-12-11 17:41:04 +0100 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2020-02-17 17:16:28 -0500 |
commit | 6f2b79f5847f941aec44ed5813c0dae16c2b2946 (patch) | |
tree | 05efee20472972ee228d378f2a5450306af8dbbc /CHANGELOG.md | |
parent | 0c3b673e4c64c6e9c580b15ff8cf9c2a21c29cbd (diff) |
ignore: use git commondir for sourcing .git/info/exclude
Git looks for this file in GIT_COMMON_DIR, which is usually the same
as GIT_DIR (.git). However, when searching inside a linked worktree,
.git is usually a file that contains the path of the actual git dir,
which in turn contains a file "commondir" which references the directory
where info/exclude may reside, alongside other configuration shared across
all worktrees. This directory is usually the git dir of the main worktree.
Unlike git this does *not* read environment variables GIT_DIR and
GIT_COMMON_DIR, because it is not clear how to interpret them when
searching multiple repositories.
Fixes #1445, Closes #1446
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b6fd070..e841cc64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,8 @@ Bug fixes: Fixes a performance bug when searching plain text files with very long lines. * [BUG #1344](https://github.com/BurntSushi/ripgrep/issues/1344): Document usage of `--type all`. +* [BUG #1445](https://github.com/BurntSushi/ripgrep/issues/1445): + ripgrep now respects ignore rules from .git/info/exclude in worktrees. 11.0.2 (2019-08-01) |