Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .gitattributes file with Git-style path matchers customizing how PR changed files appear on GitHub #6940

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Attributes per path

# This allows for example for customizing how changed files appear on GitHub.
# See https://docs.github.com/en/repositories/working-with-files/managing-files/customizing-how-changed-files-appear-on-github

# linguist-generated marks matching paths as ignored for the repo language stats and hidden by default in diffs.
# See https://github.com/github-linguist/linguist/blob/master/docs/overrides.md#overrides

**/go.sum linguist-generated=true
**/vendor/**/* linguist-generated=true
pkg/apiserver-gen/**/* linguist-generated=true
pkg/**/mock.go linguist-generated=true
pkg/**/mock_Backend.go linguist-generated=true
pkg/**/mock_Client.go linguist-generated=true