brew log should show complete Git log if no formulae are specified

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Michael Dippery 2010-10-30 09:45:58 -04:00 committed by Adam Vandenberg
parent 8e8875f8f4
commit c3c27be583

View File

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