10313: Mark large benchmark data files as binary to filter greps r=lnicola a=joshtriplett

When doing a git grep (of rust-analyzer or of rust-lang/rust with
--recurse-submodules), if the grep happens to match within the large
benchmark data files, the resulting long single lines can cause a text
pager or editor to slow down and distract from more useful matches.

These test data files 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".

Co-authored-by: Josh Triplett <josh@joshtriplett.org>
This commit is contained in:
bors[bot] 2021-09-22 20:04:30 +00:00 committed by GitHub
commit 075fe761f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
.gitattributes vendored
View file

@ -1,4 +1,6 @@
* text=auto eol=lf
# git grep shouldn't match entries in this benchmark data
bench_data/** binary
crates/syntax/test_data/** -text eof=LF
# Older git versions try to fix line endings on images, this prevents it.
*.png binary