--- Mike Ayers <[EMAIL PROTECTED]> wrote: > > When I update files now (which I have previously > edited on windows), > > they suddenly have a ^M at the end of every line > which is a little bit > > annoying. Is there a way to stop cvs from adding > ^M? > > CVS is not adding the LFs (^M is the graphic > representation of LF, the ASCII > linefeed character). You are using a native windows > editor (or some other > form of processing) on your files, and it will > (correctly) use CR/LF line > terminators, as these are the proper line > terminators for Windows systems. > However, the CVS client you are using was compiled > for Cygwin, a Unix > emulation environment for Windows, and therefore > expects Unix style text file, > i.e. CR only. There are two ways to handle this, > pick the one which suits > your needs better: > > 1) Don't use the Cygwin CVS client, download > WinCVS from cvsgui.org and use > it, as it will correctly handle CR-LF files. This > is a good answer if you are > using only Windows tools. > > 2) Write a commit script that runs dos2unix on the > file before cvs commit. > This is a good answer if you are using a mixed bag > of tools and are willing to > do command line CVS operations.
3) Mount your drives as text and Cygwin's CVS should do the translations as appropriate. HTH, Noel __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com _______________________________________________ Info-cvs mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/info-cvs
