Code committal aids
To reduce the number of keypresses needed to do a commit to CVS I use the following tools:
- prepare-ChangeLog.pl
- Which extracts which detects which files have changed, and writes a ChangeLog entry template.
- gvim
- A text editor to edit code, as well as tuning and trimming the generated ChangeLog entry. ChangeLog entry template.
- cicl
- Which does the commit described in the first ChangeLog entry.
This allows me to trim away the changes not yet ready to be commited, the commit script then commits the changes with the last entry from the ChangeLog as commit message.
This termgrab shows how it being used in practise:
$ prepare-ChangeLog.pl Updating ChangeLog from cvs repository. M ChangeLog Running cvs diff to find changes. Extracting affected function names from C source files. Editing the ChangeLog file. Done editing ChangeLog. $ gvim ChangeLog #remove files to be kept from commiting, add comments $ cicl Checking in ChangeLog; /cvs/gnome/gegl/ChangeLog,v $
Entry was updated:Changed to reflect current reality, I originally had my own ruby script to do the commit, but cicl a shorter perl version does the same job, and already existed