Skip to content

Commit

Permalink
add .gitattributes to auto collapse generated files (#128)
Browse files Browse the repository at this point in the history
* add .gitattributes to auto collapse generated files

Signed-off-by: Sachin Chavan <[email protected]>

* Update .gitattributes

Signed-off-by: Sachin Chavan <[email protected]>

* keep only one line to handle all generated files

Signed-off-by: Sachin Chavan <[email protected]>
  • Loading branch information
sachinsmc authored Jul 15, 2022
1 parent bd3b7b1 commit ebca0a7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file is documented at https://git-scm.com/docs/gitattributes.
#
# Linguist-specific attributes are documented at
# https://github.com/github/linguist.

# Collapse generated code in code reviews.
**/zz_generated.*.go linguist-generated=true

0 comments on commit ebca0a7

Please sign in to comment.