def _check_author(commit, author):
    if author and commit.author.name == author:
        return True
    elif author and commit.author.email == author:
        return True
    elif not author:
        return True
    return False


# FIXME: time & offset ?
Gets an event handler class by its type.
dataset/ETHPy150Open douban/ellen/ellen/git/rev_list.py/_check_author--crossover with--dataset/ETHPy150Open oppia/oppia/core/domain/event_services.py/Registry.get_event_class_by_type