def METHOD_NAME(rows, only_signed, prefix):
    """Parses the rows given by `git tag`. Removes the objectypes and signatures and returns the
    refnames"""
    # Removes any line that doesn't start with 'tag' and strip 'tag ' from those lines
    rows = [x[4:] for x in rows if x.startswith("tag")]
    # Strips "Y " or "N " and removes non-signed if requested
    rows = [x[2:] for x in rows if x[0] == "Y" or not only_signed]
    if prefix is None:
        rows = [x for x in rows if "/" not in x]
    return rows