Add equals() methods to branch and commit, compare SHA hashes