Add a class to represent a git commit.