Skip to content

Commit

Permalink
[gitattributes] Ignore various noisy files
Browse files Browse the repository at this point in the history
These routinely interfere with `git grep`.

Change-Id: I50438950b13057cd71361ec7828d0bc4deb7387b
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/557081
Reviewed-by: Shai Barack <[email protected]>
Commit-Queue: Tamir Duberstein <[email protected]>
  • Loading branch information
tamird authored and CQ Bot committed Jul 20, 2021
1 parent 08b58a4 commit 9ff8f1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Auto detect text files and perform LF normalization
# Auto detect text files and perform LF normalization.
* text=auto

# Always perform LF normalization on these files
# Always perform LF normalization on these files.
*.c text
*.cc text
*.cpp text
*.h text
*.gn text
*.md text

# Don't treat SVG as text.
*.svg -diff

# Skip Tricium by default on files in third_party and golden files but still
# enforce tricium on BUILD.gn and OWNERS even in these directories.
**/golden/** -tricium
Expand Down
2 changes: 2 additions & 0 deletions third_party/golibs/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Turn off LF normalization for vendored crates.
vendor/** text=false
5 changes: 4 additions & 1 deletion third_party/rust_crates/.gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Turn off LF normalization for vendored crates
# Turn off LF normalization for vendored crates.
vendor/** text=false

# Don't treat test data as text.
vendor/**/third_party/NIST/SHAVS/*.rsp -diff

0 comments on commit 9ff8f1c

Please sign in to comment.