parameters: (path='.', commit1='HEAD', commit2='master')
return_statement: return result['ret'] == 0
docstring: Returns whether |commit1| is an ancestor of |commit2|.
docstring_summary: Returns whether |commit1| is an ancestor of |commit2|.
docstring_tokens: Returns whether |commit1| is an ancestor of |commit2| .
function: def is_ancestor(path='.', commit1='HEAD', commit2='master'):
    """ Returns whether |commit1| is an ancestor of |commit2|. """
    cmd = "%s merge-base --is-ancestor %s %s" % (git_exe, commit1, commit2)
    result = exec_cmd(cmd, path)
    return result['ret'] == 0
function_tokens: def is_ancestor ( path = '.' , commit1 = 'HEAD' , commit2 = 'master' ) : cmd = "%s merge-base --is-ancestor %s %s" % ( git_exe , commit1 , commit2 ) result = exec_cmd ( cmd , path ) return result [ 'ret' ] == 0