From facb82e4bcacff3e73de74362bfc9f046159ac09 Mon Sep 17 00:00:00 2001 From: Tim D. Smith Date: Sat, 4 Oct 2014 16:09:48 -0700 Subject: Shows time since last commit in brew config Closes Homebrew/homebrew#32936. --- Library/Homebrew/utils.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library/Homebrew/utils.rb') 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 -- cgit v1.2.3