ARGV: Deprecate ARGV.git?

This commit is contained in:
Gautham G 2020-03-15 18:04:51 +05:30
parent b6d9b1aae6
commit fde11efdf3
3 changed files with 3 additions and 7 deletions

View File

@ -122,7 +122,7 @@ class Build
staging.retain! if ARGV.keep_tmp?
formula.patch
if ARGV.git?
if Homebrew.args.git?
system "git", "init"
system "git", "add", "-A"
end
@ -131,7 +131,7 @@ class Build
puts "Type `exit` to return and finalize the installation."
puts "Install to this prefix: #{formula.prefix}"
if ARGV.git?
if Homebrew.args.git?
puts "This directory is now a git repo. Make your changes and then use:"
puts " git diff | pbcopy"
puts "to copy the diff to the clipboard."

View File

@ -35,10 +35,6 @@ module HomebrewArgvExtension
include? "--keep-tmp"
end
def git?
flag? "--git"
end
def homebrew_developer?
!ENV["HOMEBREW_DEVELOPER"].nil?
end

View File

@ -27,7 +27,7 @@ module Homebrew
fi.options = options
fi.build_bottle = ARGV.build_bottle?
fi.interactive = Homebrew.args.interactive?
fi.git = ARGV.git?
fi.git = Homebrew.args.git?
fi.link_keg ||= keg_was_linked if keg_had_linked_opt
fi.build_from_source = true if build_from_source
if tab