Skip to content

Commit d364577

Browse files
Have snapshots files be collapsed in GitHub by default
See https://github.com/github-linguist/linguist/blob/main/docs/overrides.md When looking at a PR like https://github.com/axodotdev/cargo-dist/pull/1503/files there's a _lot_ of scrolling involved just for .snap files — sure we probably should open up a couple and check what's in there, but having 60+ of them opened by default just makes the GitHub UI sluggish and makes the review experience poorer.
1 parent 61f0b0a commit d364577

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@
1111
# Denote all files that are truly binary and should not be modified.
1212
*.png binary
1313
*.jpg binary
14+
15+
# All snapshots files are generated, collapsed them by default in the diff view
16+
*.snap linguist-generated

0 commit comments

Comments
 (0)