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.
6 lines
244 B
Plaintext
6 lines
244 B
Plaintext
# 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
|