diff options
| -rwxr-xr-x | Library/Homebrew/build.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb index 9ba49ba3f..a818cc556 100755 --- a/Library/Homebrew/build.rb +++ b/Library/Homebrew/build.rb @@ -75,14 +75,16 @@ def install f end f.brew do + if ARGV.flag? '--git' + system "git init" + system "git add -A" + end if ARGV.flag? '--interactive' ohai "Entering interactive mode" puts "Type `exit' to return and finalize the installation" puts "Install to this prefix: #{f.prefix}" if ARGV.flag? '--git' - system "git init" - system "git add -A" 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." |
