mirror of
https://github.com/gosticks/brew.git
synced 2026-08-12 04:30:21 +00:00
@@ -1,10 +1,12 @@
|
||||
module Homebrew extend self
|
||||
def log
|
||||
cd HOMEBREW_REPOSITORY
|
||||
if ARGV.named.empty?
|
||||
cd HOMEBREW_REPOSITORY
|
||||
exec "git", "log", *ARGV.options_only
|
||||
else
|
||||
exec "git", "log", *ARGV.options_only + ARGV.formulae.map(&:path)
|
||||
path = ARGV.formulae.first.path.realpath
|
||||
cd path.dirname # supports taps
|
||||
exec "git", "log", *ARGV.options_only + [path]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user