parameters: (distance: int, verbose: bool = False)
return_statement: return get_git_commit_hash(f'origin/{base_branch}~{distance}', verbose)
docstring: Returns the hash for the commit with the given distance from top of the
    tree for the origin base branch.
docstring_summary: Returns the hash for the commit with the given distance from top of the
    tree for the origin base branch.
docstring_tokens: Returns the hash for the commit with the given distance from top of the tree for the origin base branch .
function: def get_origin_tree_commit(distance: int, verbose: bool = False) -> str:
    """Returns the hash for the commit with the given distance from top of the
    tree for the origin base branch."""
    base_branch = get_required_env_var("BUILDKITE_PULL_REQUEST_BASE_BRANCH")
    execute_cmd_and_get_output(
        ['git', 'fetch', '--prune', '--', 'origin', base_branch],
        cwd=THIS_DIRECTORY,
        verbose=verbose)
    return get_git_commit_hash(f'origin/{base_branch}~{distance}', verbose)
function_tokens: def get_origin_tree_commit ( distance : int , verbose : bool = False ) -> str : base_branch = get_required_env_var ( "BUILDKITE_PULL_REQUEST_BASE_BRANCH" ) execute_cmd_and_get_output ( [ 'git' , 'fetch' , '--prune' , '--' , 'origin' , base_branch ] , cwd = THIS_DIRECTORY , verbose = verbose ) return get_git_commit_hash ( f'origin/{base_branch}~{distance}' , verbose )