Skip to content

Commit 075fe76

Browse files
Merge #10313
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 <[email protected]>
2 parents 8a82e6c + dfd28c1 commit 075fe76

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
@@ -1,4 +1,6 @@
11
* text=auto eol=lf
2+
# git grep shouldn't match entries in this benchmark data
3+
bench_data/** binary
24
crates/syntax/test_data/** -text eof=LF
35
# Older git versions try to fix line endings on images, this prevents it.
46
*.png binary

0 commit comments

Comments
 (0)