Sasha
Sasha

Reputation: 3445

Can I do a cvs commit using a file for the cvs comments?

I would like to be able to do a cvs commit, but provide multi-line comments from a file instead of letting cvs invoke the editor. Is this even possible?

Upvotes: 0

Views: 391

Answers (3)

ADW
ADW

Reputation: 4080

Use the -F flag thus:

cvs commit -F file <files to commit>

Upvotes: 2

KARASZI Istv&#225;n
KARASZI Istv&#225;n

Reputation: 31467

This probably do the job:

cvs commit -m "$(cat file)" modified_file.c

Upvotes: 0

Arialdo Martini
Arialdo Martini

Reputation: 4567

Supposing you did mean commit, not update, which does not require comments, you could do

cvs commit -m `cat file_containing_multiline_comments` file_to_commit

Upvotes: 0

Related Questions