mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

These need to be after the original module/class definitions for the monkey-patching to work correctly.
19 lines
291 B
Ruby
19 lines
291 B
Ruby
# typed: false
|
|
# frozen_string_literal: true
|
|
|
|
module Homebrew
|
|
extend T::Sig
|
|
|
|
module_function
|
|
|
|
class << self
|
|
alias generic_git_tags git_tags
|
|
end
|
|
|
|
def git_tags
|
|
tags = generic_git_tags
|
|
tags = Utils.popen_read("git tag --list | sort -rV") if tags.blank?
|
|
tags
|
|
end
|
|
end
|