From ce1d82488648c92a7954faf67e26ade2302ec1a6 Mon Sep 17 00:00:00 2001 From: Armel Soro Date: Wed, 28 Jun 2023 17:31:23 +0200 Subject: [PATCH] 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. --- .gitattributes | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..b91e6c331 --- /dev/null +++ b/.gitattributes @@ -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