aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/log.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/log.rb')
-rw-r--r--Library/Homebrew/cmd/log.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/log.rb b/Library/Homebrew/cmd/log.rb
index 9492c1e1e..734460e88 100644
--- a/Library/Homebrew/cmd/log.rb
+++ b/Library/Homebrew/cmd/log.rb
@@ -5,6 +5,8 @@
require "formula"
module Homebrew
+ module_function
+
def log
if ARGV.named.empty?
cd HOMEBREW_REPOSITORY
@@ -16,8 +18,6 @@ module Homebrew
end
end
- private
-
def git_log(path = nil)
if File.exist? "#{`git rev-parse --show-toplevel`.chomp}/.git/shallow"
opoo <<-EOS.undent
@@ -29,4 +29,5 @@ module Homebrew
args += ["--", path] unless path.nil?
exec "git", "log", *args
end
+ private_class_method :git_log
end