aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-09-24 19:19:57 +0100
committerMax Howell2009-09-24 21:09:46 +0100
commitbfb3e1bfe0e3a75a97536a8e2b178f0be4ca78a6 (patch)
tree3274ca6f8b619ac083f96d1b394f6180b99b3466 /bin
parentdc0e64dc2273633b734ebac27f2b083df6a8a399 (diff)
downloadbrew-bfb3e1bfe0e3a75a97536a8e2b178f0be4ca78a6.tar.bz2
brew log command
Shows the git-log for that formula.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/brew b/bin/brew
index 465d928c7..a07077f95 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