Commit hash function