git-gui: Define a simple class/method system