code: def git_list_tags(repo_dir, with_messages=False):
      
      command = ['git', 'tag', '-l']
      if with_messages:
          command.append('-n1')
      raw = execute_git_command(command, repo_dir=repo_dir).splitlines()
      output = [l.strip() for l in raw if l.strip()]
      if with_messages:
          output = [tuple(j.strip() for j in line.split(None, 1))
                    for line in output]
      return output
docs: Return a list of git tags for the git repo in `repo_dir`.