With the changes made in ed60987de1676c653571356291031ba667a80284, it is now trivial to start testing some of the logic, without having to depend on a specific Git repository state. Time to get some tests going...