Merge pull request #7174 from GauthamGoli/argv-cleanup-13

ARGV: Deprecate ARGV.git?
This commit is contained in:
Mike McQuaid 2020-03-15 13:21:11 +00:00 committed by GitHub
commit 63ef04fdfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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