Add .gitattributes file with Git-style path matches customizing how changed files appear on GitHub (#6940)

This should make it easier to review large PRs
with a lot of changes from certain files
(like in `**/vendor/**`), by hiding them by default.
This commit is contained in:
Armel Soro
2023-06-28 17:31:23 +02:00
committed by GitHub
parent f276d0d77b
commit ce1d824886

14
.gitattributes vendored Normal file
View File

@@ -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