git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* The different EOL behavior between libgit2-based software and official Git
@ 2014-06-19  2:59 Yue Lin Ho
  2014-06-19  6:39 ` Torsten Bögershausen
  0 siblings, 1 reply; 10+ messages in thread
From: Yue Lin Ho @ 2014-06-19  2:59 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-23 17:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-19  2:59 The different EOL behavior between libgit2-based software and official Git Yue Lin Ho
2014-06-19  6:39 ` 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

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).