[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to keep unix eoln in repository

From: Frederic Brehm
Subject: Re: How to keep unix eoln in repository
Date: Tue, 14 May 2002 08:34:10 -0400

At 12:55 +0200 5/14/02, juhas wrote:
is there any simple way how to keep unix ends of lines (eolns) in
the repository?
Is it possible to set/write a trigger which would convert eolns
in text files during cvs checkin?
If not, is there another chance?

Use CVSROOT/commitinfo to run a script that greps for a CR-LF in the file being checked in. If it finds it, write an explanatory message to stderr and exit with status not equal to 0. That will make the commit fail.

Don't try to automatically fix the file during a commit.

You might want to limit the checks to files with specific extensions (.c, .java, etc.), or use a mechanism similar to .cvsignore to exclude certain files from this kind of check. You may not need this if everything in your repository is plain text.

Provide a simple utility for your developers so they can fix the problem.

Fred Brehm, Sarnoff Corporation, address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]