Get all files in a branch's tree.

    Args:

        profile
            A profile generated from ``simplygithub.authentication.profile``.
            Such profiles tell this module (i) the ``repo`` to connect to,
            and (ii) the ``token`` to connect with.

        branch_sha
            The SHA a branch's HEAD points to.

    Returns:
        A list of dicts containing info about each blob in the tree.

def get_files_in_branch(profile, branch_sha):
    """Get all files in a branch's tree.

    Args:

        profile
            A profile generated from ``simplygithub.authentication.profile``.
            Such profiles tell this module (i) the ``repo`` to connect to,
            and (ii) the ``token`` to connect with.

        branch_sha
            The SHA a branch's HEAD points to.

    Returns:
        A list of dicts containing info about each blob in the tree.

    """
    tree_sha = get_commit_tree(profile, branch_sha)
    files = get_files_in_tree(profile, tree_sha)
    tree = [prepare(x) for x in files]
    return tree