Skip to content

Conversation

@joshtriplett
Copy link
Member

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".

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".
@lnicola
Copy link
Member

lnicola commented Sep 22, 2021

Thanks!

bors r+

@bors
Copy link
Contributor

bors bot commented Sep 22, 2021

@bors bors bot merged commit 075fe76 into rust-lang:master Sep 22, 2021
@lnicola
Copy link
Member

lnicola commented Sep 23, 2021

changelog internal (first contribution) tell Git that the benchmark files are binary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants