16 lines
294 B
Ruby
Raw Normal View History

2023-08-08 13:54:59 -07:00
# typed: strict
2023-02-09 22:06:26 +09:00
# frozen_string_literal: true
module Homebrew
class << self
alias generic_git_tags git_tags
2023-08-08 13:54:59 -07:00
sig { returns(String) }
def git_tags
tags = generic_git_tags
tags = Utils.popen_read("git tag --list | sort -rV") if tags.blank?
tags
end
2023-02-09 22:06:26 +09:00
end
end