diff --git a/Library/Homebrew/cmd/tap-info.rb b/Library/Homebrew/cmd/tap-info.rb index 2d00a70cb8..bca5486604 100644 --- a/Library/Homebrew/cmd/tap-info.rb +++ b/Library/Homebrew/cmd/tap-info.rb @@ -76,6 +76,10 @@ module Homebrew info += "\nPrivate" if tap.private? info += "\n#{tap.path} (#{tap.path.abv})" info += "\nFrom: #{tap.remote.presence || "N/A"}" + info += "\norigin: #{tap.remote}" if tap.remote != tap.default_remote + info += "\nHEAD: #{tap.git_head || "(none)"}" + info += "\nlast commit: #{tap.git_last_commit || "never"}" + info += "\nbranch: #{tap.git_branch || "(none)"}" if tap.git_branch != "master" else info += "Not installed" end diff --git a/Library/Homebrew/tap.rb b/Library/Homebrew/tap.rb index d7ed6a1ba3..eaee138af9 100644 --- a/Library/Homebrew/tap.rb +++ b/Library/Homebrew/tap.rb @@ -902,6 +902,9 @@ class Tap hash["remote"] = remote hash["custom_remote"] = custom_remote? hash["private"] = private? + hash["HEAD"] = git_head || "(none)" + hash["last_commit"] = git_last_commit || "never" + hash["branch"] = git_branch || "(none)" end hash