From bfb3e1bfe0e3a75a97536a8e2b178f0be4ca78a6 Mon Sep 17 00:00:00 2001 From: Max Howell <max@methylblue.com> Date: Thu, 24 Sep 2009 19:19:57 +0100 Subject: [PATCH] brew log command Shows the git-log for that formula. --- Library/Homebrew/ARGV+yeast.rb | 8 ++++++-- bin/brew | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/ARGV+yeast.rb b/Library/Homebrew/ARGV+yeast.rb index 913f7c7649..02c35e5a15 100644 --- a/Library/Homebrew/ARGV+yeast.rb +++ b/Library/Homebrew/ARGV+yeast.rb @@ -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 diff --git a/bin/brew b/bin/brew index 465d928c75..a07077f950 100755 --- a/bin/brew +++ b/bin/brew @@ -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 -- GitLab