1 Jul 2008 pippin   » (Master)

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

Syndicated 2006-11-25 21:26:03 from codecave.org

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!