Skip to content

Commit

Permalink
chore: mark irrelevant snapshot files as linguist-generated (#27277)
Browse files Browse the repository at this point in the history
With this, GitHub will not show them by default in diffs. The diff can still be viewed, but only on request.

Tested on this PR: https://github.com/aws/aws-cdk/pull/27278/files

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
mrgrain authored Sep 25, 2023
1 parent b3bbc7f commit 7f3569f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@
*.jpg binary
*.tgz binary
*.tar.gz binary

# Hide snapshots from GitHub UI, except for the actual templates
**/*.snapshot/** linguist-generated
**/*.snapshot/**/*.template.json -linguist-generated
**/*.snapshot/**/*DeployAssert*.template.json linguist-generated

0 comments on commit 7f3569f

Please sign in to comment.