Yeah, dont' check it out using windows cvs client.
Basically it's stored unix style in cvs, but when you checkout using the
windows cvs client it converts line feeds on ascii tagged files
(everything not tagged as binary). Then when you check in again, it
strips them off before diffing.
There's no way to avoid it (afaik), unless maybe you tried to use cvs
under cygwin and there is some way to convince it to not convert.
It's only really a problem when transferring files directly from one
line-ending system to another, which isn't all that common (in my
experience).
The only thing to really really really avoid is checking out on windows,
copying to unix, then committing. Then you end up with windows line
endings in the cvs repository, which double up when you checkout again
on windows... arrghhh (a right pain to clean up that one).
Craig
On Mon, 2002-10-21 at 13:29, Andrus wrote:
> At 11:35 AM 10/21/2002 +1300, Craig Miskell wrote:
> >once I sorted out some issues with copying a Windows
> >checked out cvs working dir onto a unix box.... damn those line endings
> >:-))
>
> Anyone knows of a way to enforce a consistent use of the UNIX style line
> endings in Eclipse on Windows? So that we could "dos2unix" the whole
> project once, and keep the source consistent from now on.
>
> Andrus
>
This archive was generated by hypermail 2.0.0 : Sun Oct 20 2002 - 20:41:15 EDT