Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <8BFEC206D292D311921500508B0BCB8D0F10B988@msgstl01.sbc.com> From: "ASH, JAMES (SBCSI)" To: dmkarr AT earthlink DOT net, cygwin AT cygwin DOT com Subject: RE: can Cygwin CVS change line endings on checkout/update? Date: Sun, 22 Sep 2002 22:01:30 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" First of all, you should always make efforts to be sure that your CVS files are stored using the *UNIX* line ending conventions, whether you are using a client on DOS/Windows or not, whether your CVS server is running on DOS/Windows or Unix. If you do not, you *will* have trouble with diffs, and CVS may tell you a file is out of date when it is not. Second, the Cygwin CVS (as I believe the "stock" CVS) is aware of line endings and what to do with them. In a nutshell, a Windows client will convert the endings before commiting to CVS. If you are using a DOS text mount on your client machine, and your files contain DOS CR/LF endings, the client will convert the line endings to UNIX for you when you commit, and convert back to CR/LF when you checkout/update. It is smart this way. If you are using a binary mount on your client machine, the CVS client will *NOT* do any conversion. It will assume that you are already using Unix line endings (because you have a binary mount) and will leave them as is. This will lead to CR/LF in your repository (which you do not want). In our shop, the recommendation is to use DOS text mounts on your client machine so that the line endings are handled properly by CVS on checkout and commit. We make this recommendation because, if you use binary mounts, and happen to save something using a Windows editor, or any Windows IDE, that editor will save your local files with DOS endings. When you commit, CVS will not convert endings because of the binary mounts. You end up with CR/LF in your repository, and this can cause false diffs. Sorry to ramble. Hope this helps. -----Original Message----- From: dmkarr AT earthlink DOT net [mailto:dmkarr AT earthlink DOT net] Sent: Saturday, September 21, 2002 10:21 PM To: cygwin AT cygwin DOT com Subject: can Cygwin CVS change line endings on checkout/update? I've noticed that WinCVS has a feature where it can change the line endings on files on checkout/update, to either use DOS or Unix line endings. I don't see anything in the Cygwin CVS interface that can do this. Is this feature just not in standard command-line CVS? -- =================================================================== David M. Karr ; Java/J2EE/XML/Unix/C++ dmkarr AT earthlink DOT net -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/