cmd/config: limit tap info output
We really only need to see info that is surprising or out of the norm. For that reason, we can skip showing the tap remote and the tap branch if they are what we expect them to be.
This commit is contained in:
parent
0b804d4ab0
commit
857ab132a2
@ -121,10 +121,10 @@ module SystemConfig
|
||||
end
|
||||
|
||||
if tap.installed?
|
||||
out.puts "#{tap_name} origin: #{tap.remote}"
|
||||
out.puts "#{tap_name} origin: #{tap.remote}" if tap.remote != tap.default_remote
|
||||
out.puts "#{tap_name} HEAD: #{tap.git_head || "(none)"}"
|
||||
out.puts "#{tap_name} last commit: #{tap.git_last_commit || "never"}"
|
||||
out.puts "#{tap_name} branch: #{tap.git_branch || "(none)"}"
|
||||
out.puts "#{tap_name} branch: #{tap.git_branch || "(none)"}" if tap.git_branch != "master"
|
||||
end
|
||||
|
||||
if (json_file = Homebrew::API::HOMEBREW_CACHE_API/json_file_name) && json_file.exist?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user