All of lore.kernel.org
 help / color / mirror / Atom feed
* possible gitattributes eol bug with new eol=crlf | lf support?
@ 2010-09-09 22:31 Robert Buck
  2010-09-10 18:25 ` Eyvind Bernhardsen
  0 siblings, 1 reply; 6+ messages in thread
From: Robert Buck @ 2010-09-09 22:31 UTC (permalink / raw)
  To: git@vger.kernel.org List

I start with a repository containing only four files:

  * lf.xml
  * lf.sln
  * crlf.xml
  * crlf.sln

The files whose names are prefixed by LF contain Unix LF EOL
characters. The files whose names are prefixed by CRLF contain Windows
CRLF EOL characters. Each file contains two lines, on one line 'jim',
the second line contains 'tim'.

I later add and commit a .gitattributes file containing the following rules:

  *.sln  eol=crlf
  *.xml eol=lf

I _then_ clone the repository and open each file in binary mode to find:

  * the crlf.xml file contains CRLF when it should contain only LF
<<<<<<< BUG ???
  * the crlf.sln file contains CRLF as it rightly should
  * the lf.xml file contains LF as it rightly should
  * the lf.sln file contains CRLF as it rightly should

Conversion of LF-EOL files to CRLF works fine, but conversion of CRLF
to LF fails to occur.

The doc is a little unclear if this is expected behavior, which if I
recall correctly from the email threads related to the new eol
support, this should not have occurred.

Guidance appreciated.

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

end of thread, other threads:[~2010-09-13 19:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-09 22:31 possible gitattributes eol bug with new eol=crlf | lf support? Robert Buck
2010-09-10 18:25 ` Eyvind Bernhardsen
2010-09-10 21:27   ` Robert Buck
2010-09-12 11:46     ` Eyvind Bernhardsen
2010-09-12 19:58       ` Robert Buck
2010-09-13 19:49         ` Eyvind Bernhardsen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.