Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hiding new/deleted formula/cask sections on update #15836

Merged
merged 1 commit into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Library/Homebrew/cmd/update-report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,10 @@
report_all = false
end

dump_new_formula_report
dump_new_cask_report
unless Homebrew::EnvConfig.no_update_report_new?
dump_new_formula_report
dump_new_cask_report

Check warning on line 754 in Library/Homebrew/cmd/update-report.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cmd/update-report.rb#L754

Added line #L754 was not covered by tests
end
dump_renamed_formula_report if report_all
dump_renamed_cask_report if report_all
dump_deleted_formula_report(report_all)
Expand Down
4 changes: 4 additions & 0 deletions Library/Homebrew/env_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ module EnvConfig
"from running `brew install` <formula> or `brew upgrade` <formula>.",
boolean: true,
},
HOMEBREW_NO_UPDATE_REPORT_NEW: {
description: "If set, `brew update` will not show the list of newly added formulae/casks.",
boolean: true,
},
HOMEBREW_PIP_INDEX_URL: {
description: "If set, `brew install <formula>` will use this URL to download PyPI package resources.",
default_text: "`https://pypi.org/simple`.",
Expand Down
3 changes: 3 additions & 0 deletions Library/Homebrew/env_config.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ module Homebrew::EnvConfig
sig { returns(T::Boolean) }
def self.no_installed_dependents_check?; end

sig { returns(T::Boolean) }
def self.no_update_report_new?; end

sig { returns(T.nilable(String)) }
def self.no_proxy; end

Expand Down
Loading