Skip to content

Commit

Permalink
cmd/update-reset.rb: the named args are repos not taps
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhongRuoyu committed Jul 15, 2024
1 parent 913ea0e commit e806870
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/update-reset.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class UpdateReset < AbstractCommand
*Note:* this will destroy all your uncommitted or committed changes.
EOS

named_args :tap
named_args :repository

Check warning on line 16 in Library/Homebrew/cmd/update-reset.rb

View check run for this annotation

Codecov / codecov/patch

Library/Homebrew/cmd/update-reset.rb#L16

Added line #L16 was not covered by tests
end

sig { override.void }
Expand Down
1 change: 0 additions & 1 deletion completions/bash/brew
Original file line number Diff line number Diff line change
Expand Up @@ -2666,7 +2666,6 @@ _brew_update_reset() {
;;
*) ;;
esac
__brew_complete_tapped
}

_brew_update_sponsors() {
Expand Down
1 change: 0 additions & 1 deletion completions/fish/brew.fish
Original file line number Diff line number Diff line change
Expand Up @@ -1711,7 +1711,6 @@ __fish_brew_complete_arg 'update-reset' -l debug -d 'Display any debugging infor
__fish_brew_complete_arg 'update-reset' -l help -d 'Show this message'
__fish_brew_complete_arg 'update-reset' -l quiet -d 'Make some output more quiet'
__fish_brew_complete_arg 'update-reset' -l verbose -d 'Make some output more verbose'
__fish_brew_complete_arg 'update-reset' -a '(__fish_brew_suggest_taps_installed)'


__fish_brew_complete_cmd 'update-sponsors' 'Update the list of GitHub Sponsors in the `Homebrew/brew` README'
Expand Down
4 changes: 1 addition & 3 deletions completions/zsh/_brew
Original file line number Diff line number Diff line change
Expand Up @@ -2120,9 +2120,7 @@ _brew_update_reset() {
'--debug[Display any debugging information]' \
'--help[Show this message]' \
'--quiet[Make some output more quiet]' \
'--verbose[Make some output more verbose]' \
- tap \
'*::tap:__brew_any_tap'
'--verbose[Make some output more verbose]'
}

# brew update-sponsors
Expand Down
2 changes: 1 addition & 1 deletion docs/Manpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ and perform any necessary migrations.

: Display a trace of all shell commands as they are executed.

### `update-reset` \[*`tap`* ...\]
### `update-reset` \[*`repository`* ...\]

Fetch and reset Homebrew and all tap repositories (or any specified
*`repository`*) using `git`(1) to their latest `origin/HEAD`.
Expand Down
2 changes: 1 addition & 1 deletion manpages/brew.1
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ Print the directories checked and \fBgit\fP operations performed\.
.TP
\fB\-d\fP, \fB\-\-debug\fP
Display a trace of all shell commands as they are executed\.
.SS "\fBupdate\-reset\fP \fR[\fItap\fP \.\.\.]"
.SS "\fBupdate\-reset\fP \fR[\fIrepository\fP \.\.\.]"
Fetch and reset Homebrew and all tap repositories (or any specified \fIrepository\fP) using \fBgit\fP(1) to their latest \fBorigin/HEAD\fP\&\.
.P
\fINote:\fP this will destroy all your uncommitted or committed changes\.
Expand Down

0 comments on commit e806870

Please sign in to comment.