blob: 6ffeab1e44ad69096ef71fedd19ce05bc31d76e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require "formula"
module Homebrew
def log
if ARGV.named.empty?
cd HOMEBREW_REPOSITORY
exec "git", "log", *ARGV.options_only
else
path = Formulary.path(ARGV.named.first)
cd path.dirname # supports taps
exec "git", "log", *ARGV.options_only + ["--", path]
end
end
end
|