Merge pull request #16386 from apainintheneck/limit-config-tap-info-output

cmd/config: limit tap info output
This commit is contained in:
Kevin 2023-12-22 11:46:12 -08:00 committed by GitHub
commit 2cbe3886e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,10 +121,10 @@ module SystemConfig
end end
if tap.installed? 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} HEAD: #{tap.git_head || "(none)"}"
out.puts "#{tap_name} last commit: #{tap.git_last_commit || "never"}" 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 end
if (json_file = Homebrew::API::HOMEBREW_CACHE_API/json_file_name) && json_file.exist? if (json_file = Homebrew::API::HOMEBREW_CACHE_API/json_file_name) && json_file.exist?