[cvsnt] Samba share and line endings

Tony Hoyle tony.hoyle at march-hare.com
Mon Jun 19 23:11:46 BST 2006


Torsten Martinsen wrote:
> I believe some people use UNIX style sandboxes when working with Cygwin 
> and the like - some UNIX tools do not like CRLF endings.

That's what -k+L is for.

If you're using cygwin like that then that's a fast way to repository 
corruption - all it takes is someone to edit a file in notepad and you're 
going to have to hand edit the RCS files to get it sorted out (that's *if* you 
catch it fast enough to be able to do that).

-k+L lets the client keep its proper cr/lf detection/conversion so this 
scenario is fixed (the CRs added by notepad are automatically stripped).

And of course a cvsnt server already corrects this server side for older clients.

There's an argument for -k+L to work with non-cvsnt servers (since it's mostly 
a client side option this should be techincally possible).. but I'm not sure 
how you could store it properly though.. the client doesn't really maintain 
much state.

Tony



More information about the cvsnt mailing list