C implementation of the 'git' program, take two.