def list_tags(repository, name_only=None):
    tags = []
    refs = repository.listall_references()
    for ref in refs:
        if ref.startswith("refs/tags/"):
            if name_only:
                tags.append(ref.rpartition('/')[-1])
                continue
            # this is a tag but maybe a lightweight tag
            tag_obj = repository.revparse_single(ref)
            if tag_obj and tag_obj.type == GIT_OBJ_COMMIT:
                # lightweight tag
                tags.append(format_lw_tag(ref, tag_obj, repository))
            elif tag_obj and tag_obj.type == GIT_OBJ_TAG:
                tags.append(format_tag(tag_obj, repository))
    return tuple(tags)
Return a combined list of sprite blockers and object blockers.
dataset/ETHPy150Open douban/ellen/ellen/git/tag.py/list_tags--crossover with--dataset/ETHPy150Open justinmeister/The-Stolen-Crown-RPG/data/collision.py/CollisionHandler.make_blocker_list