Mark huge rls-analysis test data files as binary to filter greps

When doing a `git grep` (of rls or of rust-lang/rust with
`--recurse-submodules`), if the grep happens to match within the huge
rls-analysis test data files, the resulting multi-megabyte single-line
can cause a text pager to grind to a halt and have trouble scrolling
(especially scrolling backwards).

These test data files are autogenerated and aren't formatted for human
consumption, so mark them as binary, which causes `git grep` to instead
just state that they match without printing the matching "line".
This commit is contained in:
Josh Triplett 2021-04-29 22:54:09 -07:00
parent 74d1800c25
commit 533d567e47
1 changed files with 2 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
rls-analysis/test_data/rls-analysis/*.json binary
rls-analysis/test_data/rust-analysis/*.json binary