code: def _get_tags(c):
      tags_ = []
      for tagstr in c.run("git tag", hide=True).stdout.strip().split("\n"):
          try:
              tags_.append(Version(tagstr))
          except ValueError:
              pass
      return sorted(tags_)