Add .gitattributes force eol to LF (no CR+LF) (#18)

Add .gitattributes force eol to LF (no CR+LF).  People have different core.autocrlf configurations and It can turn Bochs repository into a mess.

text="auto" is for automatic end-of-line normalization. If Git decides that the content is text, its line endings are normalized to LF on checkin.

If the text attribute is unspecified, Git uses the core.autocrlf configuration variable to determine if the file should be converted.

So, when someone commits a file, Git guesses whether that file is a text file or not, and if it is, it will commit a version of the file where all CR + LF bytes are replaced with LF bytes.
This commit is contained in:
Dreg 2022-07-24 17:27:33 +02:00 committed by GitHub
parent 88f881c6d5
commit f6a654af55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text=auto eol=lf