Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was curious if there was a way to add a hook or something into CVS so that when you commit a text file or into CVS, it will add a certain string at the end of the file?

For example, say something like: "Committed by Joe Schmoe on 03/11/2010"

share|improve this question
You don't want to modify files mid-commit, behind the users back. Tell us what you're trying to do, and we'll tell you how to do it reliably. – Alex Holst Apr 2 '10 at 17:02

The usual way to do something like that is CVS keyword expansion:

A small drawback is, that you'll have the $ signs in the file, but many people are used to this convention.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.