[cvsnt] LF or CRLF?
Glen Starrett
grstarrett at cox.net
Sun Jun 29 04:53:04 BST 2003
There's an option I saw for that somewhere--but I don't recall what it
is. Try looking up the options for checkout in the CVSNT command
reference.
I think CR/LF substution happens before it hits the repository--all text
files are stored in the repository with LF only, even on NT. The -kb
option stops binary files from having the substitution happen on binary
files (it would corrupt them).
Hope this helps.
Good luck,
Glen Starrett
-----Original Message-----
From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org] On Behalf
Of Per Steneskog
Sent: Saturday, June 28, 2003 2:29 PM
To: cvsnt at cvsnt.org
Subject: [cvsnt] LF or CRLF?
Hi.
I have far from read through the complete news-archive and only quickly
went through the wiki at www.cvsnt.org. So bashing is allowed. It is
also possible that this question is not CVSNT-specific. If so I apology.
My "problem" is that I would like to use LF (*nix-style) new-lines. I
have trouble getting the IDE (eclipse on Windows) to easily commit the
files with LF instead of CRLF. Also having trouble running diff cause of
different new-lines.
I have heard that CVS (the server?) is intelligent to depend on the OS
of the CVS-client to check-out (or commit?) files with proper new-line.
Though my experience (not CVSNT but CVS-server at linux) is that the
*nix-users might get lovely ^M.
Am I just dumb trying to have LF new-lines within the repository?
Instead, simply whenever I want to distribute to *nix, I should
check-out from such os? (bummer, not available). Current solution is to
strip CRLF->LF after check-out and then distribute.
Best regards
Per Steneskog
_______________________________________________
cvsnt mailing list
cvsnt at cvsnt.org http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list