.. seealso:: :attr:`commit`

def commit(self, commit):
        '''
        .. seealso:: :attr:`commit`
        '''

        c = self.commit
        if c:
            if not commit:
                commit = c[0]
            if commit in c:
                self._checkout(treeish=commit)