mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
.gitattributes: Mark minified javascript as binary to filter greps
When doing a git grep (of rustc-dev-guide or of rust-lang/rust with --recurse-submodules), if the grep happens to match within the minified javascript, the resulting long single lines can cause a text pager or editor to slow down and distract from more useful matches. Minified javascript isn't formatted for human consumption, by definition, so mark it as binary, which causes git grep to instead just state that it matches without printing the matching "line".
This commit is contained in:
committed by
Tshepang Mbambo
parent
d144eef1c9
commit
615f414a1b
@@ -1,6 +1,9 @@
|
||||
# Set the default behavior, in case people don't have core.autocrlf set.
|
||||
* text=auto eol=lf
|
||||
|
||||
# git grep shouldn't match entries in huge minified javascript
|
||||
*.min.js binary
|
||||
|
||||
# Older git versions try to fix line endings on images, this prevents it.
|
||||
*.png binary
|
||||
*.jpg binary
|
||||
|
||||
Reference in New Issue
Block a user