aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorTim D. Smith2014-10-04 16:09:48 -0700
committerTim D. Smith2014-10-05 16:17:57 -0700
commit0ed10ad5264ab543867306c010645144564bc583 (patch)
treef0f5560100ce04e6809405feebf91d2564d09914 /Library/Homebrew/cmd
parentf197b53693c0a10a5bf29a350c876f46d2fa2797 (diff)
downloadhomebrew-0ed10ad5264ab543867306c010645144564bc583.tar.bz2
Shows time since last commit in brew config
Closes #32936.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/config.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/config.rb b/Library/Homebrew/cmd/config.rb
index 037294655..7996b55ce 100644
--- a/Library/Homebrew/cmd/config.rb
+++ b/Library/Homebrew/cmd/config.rb
@@ -47,6 +47,10 @@ module Homebrew
Homebrew.git_head || "(none)"
end
+ def last_commit
+ Homebrew.git_last_commit || "never"
+ end
+
def origin
origin = HOMEBREW_REPOSITORY.cd do
`git config --get remote.origin.url 2>/dev/null`.chomp
@@ -121,6 +125,7 @@ module Homebrew
f.puts "HOMEBREW_VERSION: #{HOMEBREW_VERSION}"
f.puts "ORIGIN: #{origin}"
f.puts "HEAD: #{head}"
+ f.puts "Last commit: #{last_commit}"
f.puts "HOMEBREW_PREFIX: #{HOMEBREW_PREFIX}"
f.puts "HOMEBREW_CELLAR: #{HOMEBREW_CELLAR}"
f.puts hardware