docs: def _has_tag(version, debug=False):
      """
      Determine a version is a local git tag name or not.
  
      :param version: A string containing the branch/tag/sha to be determined.
      :param debug: An optional bool to toggle debug output.
      :return: bool
      """
      cmd = sh.git.bake('show-ref', '--verify', '--quiet',
                        "refs/tags/{}".format(version))
      try:
          util.run_command(cmd, debug=debug)
          return True
      except sh.ErrorReturnCode:
          return False