def get_blob(self, path, commit):
    """
    Get the blob at corresponding path from the given commit.

    :param pathlib.Path path: path relative to repo, leading to a file
    :param git.Commit commit: the commit to get the blob from
    :return: the corresponding blob instance or None if not found
    :rtype: git.Blob or None
    """
    try:
        return commit.tree[path.as_posix()]
    except KeyError:
        return None