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 ?
check author or email
dataset/ETHPy150Open douban/ellen/ellen/git/rev_list.py/_check_author