diff options
Diffstat (limited to 'Library/Homebrew/cmd/log.rb')
| -rw-r--r-- | Library/Homebrew/cmd/log.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/log.rb b/Library/Homebrew/cmd/log.rb new file mode 100644 index 000000000..ceb0c8e02 --- /dev/null +++ b/Library/Homebrew/cmd/log.rb @@ -0,0 +1,10 @@ +module Homebrew extend self + def log + cd HOMEBREW_REPOSITORY + if ARGV.named.empty? + exec "git", "log", *ARGV.options_only + else + exec "git", "log", *ARGV.formulae.map(&:path), *ARGV.options_only + end + end +end |
