1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2024-12-12 19:18:24 +02:00
ripgrep/tests
Johannes Altmanninger 6f2b79f584 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
2020-02-17 17:16:28 -05:00
..
data binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
binary.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
feature.rs cli: add --no-ignore-exclude flag 2020-02-17 17:16:28 -05:00
hay.rs tests: re-tool integration tests 2018-08-20 07:10:19 -04:00
json.rs regex: make CRLF hack more robust 2019-01-26 12:34:28 -05:00
macros.rs edition: move core ripgrep to Rust 2018 2019-01-19 10:44:30 -05:00
misc.rs cli: add --include-zero flag 2020-02-17 17:16:28 -05:00
multiline.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
regression.rs ignore: use git commondir for sourcing .git/info/exclude 2020-02-17 17:16:28 -05:00
tests.rs binary: rejigger ripgrep's handling of binary files 2019-04-14 19:29:27 -04:00
util.rs tests: remove existing test directory 2020-02-17 17:16:28 -05:00