3.6. Commiting Changes

Once you have made changes to a file and validated your XML, you are ready to commit the changes to the CVS repository.

When commiting a file or files to the repository, it is polite to supply a brief message of what you have changed. You do not need to document every single line you changed, that is part of CVS' job. However, it is helpful to see a brief summary of what has changed from version to version without having to study the file itself.

To commit a file, issue the following command:

$ cvs commit -m 'added new blah() function' file1 [file2]

Sometimes it is more convinient to ommit the -m parameter, as this way CVS opens a text editor and you can type in your comments there. If you would like to add more comments, you can't express on one line using -m, choose this way.