Merge pull request #18464 from benknoble/bk/tap-info-commit
feat(tap-info): display Git information about non-Core/non-API taps
This commit is contained in:
commit
54d484d428
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user