Fix .gitattributes and normalize to LF in repository

Existing `*text eol=lf` is malformed (no space after *) so does
nothing.

CONTRIBUTING.md states 'We checkout Windows and commit *nix'.  The
correct way to achieve this is `* text=auto`. `* text eol=lf` would
force line endings to LF on checkout.

See:
https://git-scm.com/docs/gitattributes#Documentation/gitattributes.txt-Settostringvaluelf
This commit is contained in:
ta264 2019-10-14 21:53:37 +01:00 committed by Taloth
parent 8a2a41fab0
commit 7b68ce49d5
6 changed files with 659 additions and 653 deletions

8
.gitattributes vendored
View File

@ -1,5 +1,11 @@
# Auto detect text files and perform LF normalization
*text eol=lf
* text=auto
# Explicitly set bash scripts to have unix endings
# when checked out on windows
*.sh text eol=lf
distribution/debian/* text eol=lf
macOS/Sonarr text eol=lf
# Custom for Visual Studio
*.cs diff=csharp