diff --git a/completions/bash/brew b/completions/bash/brew index 3f96366118..9393674f70 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -522,6 +522,7 @@ _brew_bump_revision() { --message --quiet --verbose + --write-only " return ;; diff --git a/completions/fish/brew.fish b/completions/fish/brew.fish index 2f4d4b8fcf..f1c439e5b4 100644 --- a/completions/fish/brew.fish +++ b/completions/fish/brew.fish @@ -447,6 +447,7 @@ __fish_brew_complete_arg 'bump-revision' -l help -d 'Show this message' __fish_brew_complete_arg 'bump-revision' -l message -d 'Append message to the default commit message' __fish_brew_complete_arg 'bump-revision' -l quiet -d 'Make some output more quiet' __fish_brew_complete_arg 'bump-revision' -l verbose -d 'Make some output more verbose' +__fish_brew_complete_arg 'bump-revision' -l write-only -d 'Make the expected file modifications without taking any Git actions' __fish_brew_complete_arg 'bump-revision' -a '(__fish_brew_suggest_formulae_all)' diff --git a/completions/zsh/_brew b/completions/zsh/_brew index 9c0df6cd99..9e9d5cc6cb 100644 --- a/completions/zsh/_brew +++ b/completions/zsh/_brew @@ -545,11 +545,12 @@ _brew_bump_formula_pr() { _brew_bump_revision() { _arguments \ '--debug[Display any debugging information]' \ - '--dry-run[Print what would be done rather than doing it]' \ + '(--write-only)--dry-run[Print what would be done rather than doing it]' \ '--help[Show this message]' \ '--message[Append message to the default commit message]' \ '--quiet[Make some output more quiet]' \ '--verbose[Make some output more verbose]' \ + '(--dry-run)--write-only[Make the expected file modifications without taking any Git actions]' \ - formula \ '*::formula:__brew_formulae' } diff --git a/docs/Manpage.md b/docs/Manpage.md index b3a118223e..6a39265a4b 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -997,13 +997,15 @@ nor vice versa. It must use whichever style specification the formula already us * `-f`, `--force`: Ignore duplicate open PRs. Remove all mirrors if `--mirror` was not specified. -### `bump-revision` [*`--dry-run`*] [*`--message`*`=`] *`formula`* [...] +### `bump-revision` [*`options`*] *`formula`* [...] Create a commit to increment the revision of *`formula`*. If no revision is present, "revision 1" will be added. * `-n`, `--dry-run`: Print what would be done rather than doing it. +* `--write-only`: + Make the expected file modifications without taking any Git actions. * `--message`: Append *`message`* to the default commit message. diff --git a/manpages/brew.1 b/manpages/brew.1 index 83f0533b60..067db6b22d 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -1416,7 +1416,7 @@ Specify the new commit \fIrevision\fR corresponding to the specified git \fItag\ \fB\-f\fR, \fB\-\-force\fR Ignore duplicate open PRs\. Remove all mirrors if \fB\-\-mirror\fR was not specified\. . -.SS "\fBbump\-revision\fR [\fI\-\-dry\-run\fR] [\fI\-\-message\fR\fB=\fR] \fIformula\fR [\.\.\.]" +.SS "\fBbump\-revision\fR [\fIoptions\fR] \fIformula\fR [\.\.\.]" Create a commit to increment the revision of \fIformula\fR\. If no revision is present, "revision 1" will be added\. . .TP @@ -1424,6 +1424,10 @@ Create a commit to increment the revision of \fIformula\fR\. If no revision is p Print what would be done rather than doing it\. . .TP +\fB\-\-write\-only\fR +Make the expected file modifications without taking any Git actions\. +. +.TP \fB\-\-message\fR Append \fImessage\fR to the default commit message\. .