ARGV: Deprecate ARGV.git?
This commit is contained in:
parent
b6d9b1aae6
commit
fde11efdf3
@ -122,7 +122,7 @@ class Build
|
|||||||
staging.retain! if ARGV.keep_tmp?
|
staging.retain! if ARGV.keep_tmp?
|
||||||
formula.patch
|
formula.patch
|
||||||
|
|
||||||
if ARGV.git?
|
if Homebrew.args.git?
|
||||||
system "git", "init"
|
system "git", "init"
|
||||||
system "git", "add", "-A"
|
system "git", "add", "-A"
|
||||||
end
|
end
|
||||||
@ -131,7 +131,7 @@ class Build
|
|||||||
puts "Type `exit` to return and finalize the installation."
|
puts "Type `exit` to return and finalize the installation."
|
||||||
puts "Install to this prefix: #{formula.prefix}"
|
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 "This directory is now a git repo. Make your changes and then use:"
|
||||||
puts " git diff | pbcopy"
|
puts " git diff | pbcopy"
|
||||||
puts "to copy the diff to the clipboard."
|
puts "to copy the diff to the clipboard."
|
||||||
|
|||||||
@ -35,10 +35,6 @@ module HomebrewArgvExtension
|
|||||||
include? "--keep-tmp"
|
include? "--keep-tmp"
|
||||||
end
|
end
|
||||||
|
|
||||||
def git?
|
|
||||||
flag? "--git"
|
|
||||||
end
|
|
||||||
|
|
||||||
def homebrew_developer?
|
def homebrew_developer?
|
||||||
!ENV["HOMEBREW_DEVELOPER"].nil?
|
!ENV["HOMEBREW_DEVELOPER"].nil?
|
||||||
end
|
end
|
||||||
|
|||||||
@ -27,7 +27,7 @@ module Homebrew
|
|||||||
fi.options = options
|
fi.options = options
|
||||||
fi.build_bottle = ARGV.build_bottle?
|
fi.build_bottle = ARGV.build_bottle?
|
||||||
fi.interactive = Homebrew.args.interactive?
|
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.link_keg ||= keg_was_linked if keg_had_linked_opt
|
||||||
fi.build_from_source = true if build_from_source
|
fi.build_from_source = true if build_from_source
|
||||||
if tab
|
if tab
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user