From 857ab132a2942c6519e8016b63c1d458ca2e90bf Mon Sep 17 00:00:00 2001 From: apainintheneck Date: Fri, 22 Dec 2023 10:39:29 -0800 Subject: [PATCH] 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. --- Library/Homebrew/system_config.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/system_config.rb b/Library/Homebrew/system_config.rb index 067f7500abe44..69a218df70229 100644 --- a/Library/Homebrew/system_config.rb +++ b/Library/Homebrew/system_config.rb @@ -121,10 +121,10 @@ def dump_tap_config(tap, out = $stdout) 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?