aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorTim D. Smith2014-10-04 16:09:48 -0700
committerTim D. Smith2014-10-05 16:17:57 -0700
commitfacb82e4bcacff3e73de74362bfc9f046159ac09 (patch)
tree5814c70e84265dcf297a698bb80d00c17c279331 /Library/Homebrew/utils.rb
parent26c76381c873a389f36bc7531cdf940a246ef831 (diff)
downloadbrew-facb82e4bcacff3e73de74362bfc9f046159ac09.tar.bz2
Shows time since last commit in brew config
Closes Homebrew/homebrew#32936.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 6dc5db45e..c8827e0d3 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -119,6 +119,10 @@ module Homebrew
def self.git_head
HOMEBREW_REPOSITORY.cd { `git rev-parse --verify -q HEAD 2>/dev/null`.chuzzle }
end
+
+ def self.git_last_commit
+ HOMEBREW_REPOSITORY.cd { `git show -s --format="%cr" HEAD 2>/dev/null`.chuzzle }
+ end
end
def with_system_path