boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CommitId commitId = (CommitId)o; if (!myHash.equals(commitId.myHash)) return false; if (!myRoot.equals(commitId.myRoot)) return false; return true; }