The different EOL behavior between libgit2-based software and official Git
- From
Yue Lin Ho <yuelinho777@gmail.com>
- Date
- Jun 19, 2014, 02:59 UTC
- Message-ID
- <1403146778624-7613670.post@n2.nabble.com>
Hi:
^_^
I did some test on the EOL behavior between official git and libgit2-based software(TortoiseGit). Then, I got that they have different EOL behavior.
The blob stored in repository is a text file with mixed EOLs. Even set core.autocrlf = true, official git checkout the file as it is(means still *mixed EOLs* there). But, libgit2 checkout it with *All CRLF EOLs*.
* The steps: * set core.autocrlf = false * add file with mixed EOLs * set core.autocrlf = true * delete that file in the working tree * checkout that file * examine the EOL
If you are interested in this, you might take a look at my testing repository on GitHub. (https://github.com/YueLinHo/TestAutoCrlf)
Thank you.
Yue Lin Ho
-- View this message in context: http://git.661346.n2.nabble.com/The-different-EOL-behavior-between-libgit2-based-software-and-official-Git-tp7613670.html Sent from the git mailing list archive at Nabble.com.