brew-log accept git log options & multiple brews

This commit is contained in:
Tianyi Cui 2010-09-30 10:40:06 +08:00 committed by Adam Vandenberg
parent f708b0b81f
commit 05d7c0cae0

View File

@ -254,7 +254,7 @@ begin
when 'log'
Dir.chdir HOMEBREW_REPOSITORY
args = ARGV.options_only
args.unshift ARGV.formulae.first.path unless ARGV.named.empty?
args += ARGV.formulae.map{ |formula| formula.path }
exec "git", "log", *args
# For each formula given, show which other formulas depend on it.