functions for commits with parents and pointers