[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CVS problems
From: |
Frederic Brehm |
Subject: |
Re: CVS problems |
Date: |
Thu, 20 Jun 2002 08:59:57 -0400 |
At 22:47 -0700 6/19/02, Mike Ayers wrote:
Is there a hook that can permit a script to be run over a file during commit?
You can use commitinfo to run a script that checks files for proper
line endings. If a file has an improper line ending, write a useful
error message telling the user how to fix the line endings, and
return non-zero. That will abort the commit so the user can fix the
problem and try the commit again.
People have sometimes suggested having the commitinfo script fix the
line endings by itself (or prettyprint, or make other modifications
to files being committed), but that is usually greeted with shouts of
DON'T DO THAT.
Fred
--
Fred Brehm, Sarnoff Corporation, address@hidden
http://www.sarnoff.com/digital_video_informatics/vision_technology/index.asp