parent
9212e1b1ee
commit
46d2b2165a
@ -4,9 +4,14 @@ module Homebrew extend self
|
|||||||
cd HOMEBREW_REPOSITORY
|
cd HOMEBREW_REPOSITORY
|
||||||
exec "git", "log", *ARGV.options_only
|
exec "git", "log", *ARGV.options_only
|
||||||
else
|
else
|
||||||
|
begin
|
||||||
path = ARGV.formulae.first.path.realpath
|
path = ARGV.formulae.first.path.realpath
|
||||||
|
rescue FormulaUnavailableError
|
||||||
|
# Maybe the formula was deleted
|
||||||
|
path = HOMEBREW_REPOSITORY/"Library/Formula/#{ARGV.named.first}.rb"
|
||||||
|
end
|
||||||
cd path.dirname # supports taps
|
cd path.dirname # supports taps
|
||||||
exec "git", "log", *ARGV.options_only + [path]
|
exec "git", "log", *ARGV.options_only + ["--", path]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user