Torsten Bögershausen writes:
> No, it hadn't, under my Linux box.
> (And I had a .gittatributes file on the Mac OS box, which I forgot about.
OK, that explains the difference; thanks for double-checking.
> Files with mixed LF CRLF in the repo are not changed by Git, when the
> checkout out
> o
On 2014-06-20 18.33, Junio C Hamano wrote:
> Torsten Bögershausen writes:
>
> tb@Linux:~/EOL_Test/TestAutoCrlf$ t=LF.txt && rm -f $t && git -c
> core.eol=CRLF checkout $t && od -c $t
> 000 L i n e 1 \n l i n e ( 2 ) \n
> 020 l i n e 3
Torsten Bögershausen writes:
tb@Linux:~/EOL_Test/TestAutoCrlf$ t=LF.txt && rm -f $t && git -c
core.eol=CRLF checkout $t && od -c $t
000 L i n e 1 \n l i n e ( 2 ) \n
020 l i n e 3 . \n t h i s i s
040 l i
> Wow!
>
> P.S.
> libgit2 just has a PR that try to be identical with official git.
> See https://github.com/libgit2/libgit2/pull/2432
>
> Yue Lin Ho
>
I am not sure how much problems Git/libgit2 have with files contains mixed
LF-CRLF,
as I have the same problem with the LF.txt
The handlin
Wow!
P.S.
A note:
libgit2 just has a PR that try to be identical with official git 2.0.0.
See https://github.com/libgit2/libgit2/pull/2432
--
View this message in context:
http://git.661346.n2.nabble.com/The-different-EOL-behavior-between-libgit2-based-software-and-official-Git
Hm,
I feeled puzzled here.
Even if I wouldn't recommend to use core.autocrlf, and prefer to use
.gitattributes,
the CRLF conversion should work under Git, but it doensn't seem to do so.
Clone this repo:
origin https://github.com/YueLinHo/TestAutoCrlf.git
Try to see if LF or CRLF can be converted
Hi Torsten Bögershausen:
Since you mail to msysGit first, I reply there.
(https://groups.google.com/forum/#!topic/msysgit/EDD3RipNeBQ)
Thank you again. ^_^
Yue Lin Ho
--
View this message in context:
http://git.661346.n2.nabble.com/The-different-EOL-behavior-between-libgit2-based-software
On 06/19/2014 04:59 AM, Yue Lin Ho wrote:
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, of
, 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
9 matches
Mail list logo