From: Yue Lin Ho <yuelinho777@gmail.com>
To: git@vger.kernel.org
Subject: The different EOL behavior between libgit2-based software and official Git
Date: Wed, 18 Jun 2014 19:59:38 -0700 (PDT) [thread overview]
Message-ID: <1403146778624-7613670.post@n2.nabble.com> (raw)
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.
next reply other threads:[~2014-06-19 2:59 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 2:59 Yue Lin Ho [this message]
2014-06-19 6:39 ` The different EOL behavior between libgit2-based software and official Git Torsten Bögershausen
2014-06-19 7:25 ` Yue Lin Ho
2014-06-20 6:56 ` Torsten Bögershausen
2014-06-20 8:30 ` Yue Lin Ho
2014-06-20 10:33 ` [msysGit] " Torsten Bögershausen
2014-06-20 16:33 ` Junio C Hamano
2014-06-22 6:46 ` [msysGit] " Torsten Bögershausen
2014-06-23 17:29 ` Junio C Hamano
2014-06-20 8:44 ` Yue Lin Ho
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1403146778624-7613670.post@n2.nabble.com \
--to=yuelinho777@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).