Merge pull request #7174 from GauthamGoli/argv-cleanup-13
ARGV: Deprecate ARGV.git?
This commit is contained in:
		
						commit
						63ef04fdfe
					
				@ -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."
 | 
			
		||||
 | 
			
		||||
@ -35,10 +35,6 @@ module HomebrewArgvExtension
 | 
			
		||||
    include? "--keep-tmp"
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def git?
 | 
			
		||||
    flag? "--git"
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def homebrew_developer?
 | 
			
		||||
    !ENV["HOMEBREW_DEVELOPER"].nil?
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user