[wellylug] CVS woe
Daniel Pittman
daniel at rimspace.net
Sat Apr 4 18:37:16 NZDT 2009
David Antliff <david.antliff at gmail.com> writes:
> On Fri, Apr 3, 2009 at 17:16, Daniel Pittman <daniel at rimspace.net> wrote:
>
>> Especially on the Windows platform, where it loves to convert line
>> endings at the drop of a hat. ;)
>
> Git on Cygwin does a similar thing, until you work out what is going
> on with autocrlf mode.
Ah, Cygwin, which is the single most god-awful POSIX environment ever,
bypassing even the "Unix in FORTRAN" stuff that was popular decades ago.
You might find your life radically improved by using the "Services For
Unix" enhanced POSIX layer for Windows, which doesn't suck nearly as
much.
That, at least, would eliminate the Cygwin based stupidities from the
system for you.
> I still haven't quite worked out exactly what settings it should be
> using.
[...]
> So far I've had autocrlf turned on, safecrlf turned off... not
> entirely sure if that's the right way to go. Anyone care to comment?
Line ending conversion is the work of the devil, so I suggest you use an
editor that handles all three flavours of them, and binary-only version
control tools. :)
> I don't understand why git has to change line endings at all - can't
> it just leave them as-is? Or is that because I'm using autocrlf mode?
Um, yes. git-config(1) will give the gory details, but that setting
being true means "please corrupt my files on the way in and out, in an
effort to be less offensive to platform-specific tools."
With that set off it *SHOULD* just leave them alone.
Regards,
Daniel
More information about the wellylug
mailing list