Fetch a commit.

    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.

        sha
            The SHA of the commit to fetch.

    Returns:
        A dict with data about the commit.

def get_commit(profile, sha):
    """Fetch a commit.

    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.

        sha
            The SHA of the commit to fetch.

    Returns:
        A dict with data about the commit.

    """
    resource = "/commits/" + sha
    data = api.get_request(profile, resource)
    return prepare(data)