Skip to content

Commit

Permalink
Use CR+LF instead of LF regardless of OS
Browse files Browse the repository at this point in the history
Git by default uses CR+LF on Windows, whereas gofmt always
uses LF even on Windows.

This commit lets Git uses LF on Windows.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
  • Loading branch information
kzys committed Feb 21, 2022
1 parent 40a7613 commit 8fe1bd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.go text eol=lf

0 comments on commit 8fe1bd5

Please sign in to comment.