Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Commit 533d567

Browse files
committed
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".
1 parent 74d1800 commit 533d567

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rls-analysis/test_data/rls-analysis/*.json binary
2+
rls-analysis/test_data/rust-analysis/*.json binary

0 commit comments

Comments
 (0)