mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-15 19:56:59 +08:00
13 lines
301 B
Ruby
13 lines
301 B
Ruby
module Homebrew extend self
|
|
def log
|
|
if ARGV.named.empty?
|
|
cd HOMEBREW_REPOSITORY
|
|
exec "git", "log", *ARGV.options_only
|
|
else
|
|
path = ARGV.formulae.first.path.realpath
|
|
cd path.dirname # supports taps
|
|
exec "git", "log", *ARGV.options_only + [path]
|
|
end
|
|
end
|
|
end
|