Enforce LF line endings for YAML files
A CRLF file rewritten by a Windows contributor shows up as a whole-file diff, which hides the real change and conflicts on every rebase. .gitattributes was itself listed in .gitignore, so it could never be committed and protected nothing.
This commit is contained in:
1 parent
39febc31d4
commit
415f12d04f
1 file changed
+5
@@ -0,0 +1,5 @@
|
||||
# Every YAML in this repository is stored and checked out with LF endings.
|
||||
# Without this, a contributor working on Windows can silently reintroduce CRLF
|
||||
# and rewrite a whole file in the diff for nothing.
|
||||
*.yaml text eol=lf
|
||||
*.yml text eol=lf
|
||||
Reference in new issue
Block a user