brew log command

Shows the git-log for that formula.
This commit is contained in:
Max Howell 2009-09-24 19:19:57 +01:00
parent dc0e64dc22
commit bfb3e1bfe0
2 changed files with 12 additions and 4 deletions

View File

@ -89,14 +89,18 @@ Commands:
install formula ... [--debug|-d] [--interactive|-i] [--ignore-dependencies]
remove formula ...
search [regex]
list [formula] ...
list [-v] [formula] ...
link formula ...
unlink formula ...
home formula ...
info [formula] [--github]
create URL
prune
update
Commands useful when contributing:
log formula
create URL
To visit the Homebrew homepage type:
brew home
EOS

View File

@ -203,8 +203,12 @@ begin
ARGV.named.each {|name| info name}
end
else
puts ARGV.usage
when 'log'
Dir.chdir HOMEBREW_PREFIX
exec "git", "log", ARGV.formulae.first.path, *ARGV.options
else
puts ARGV.usage
end
rescue UsageError