Skip to content

Commit 051cc54

Browse files
tmoschougitster
authored andcommitted
complete: zsh: add missing sub cmd completion candidates
Add missing 'restore' and 'switch' sub commands to zsh completion candidate output. E.g. $ git re<tab> rebase -- forward-port local commits to the updated upstream head reset -- reset current HEAD to the specified state restore -- restore working tree files $ git s<tab> show -- show various types of objects status -- show the working tree status switch -- switch branches Signed-off-by: Terry Moschou <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent de49261 commit 051cc54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

contrib/completion/git-completion.zsh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,11 @@ __git_zsh_cmd_common ()
150150
push:'update remote refs along with associated objects'
151151
rebase:'forward-port local commits to the updated upstream head'
152152
reset:'reset current HEAD to the specified state'
153+
restore:'restore working tree files'
153154
rm:'remove files from the working tree and from the index'
154155
show:'show various types of objects'
155156
status:'show the working tree status'
157+
switch:'switch branches'
156158
tag:'create, list, delete or verify a tag object signed with GPG')
157159
_describe -t common-commands 'common commands' list && _ret=0
158160
}

0 commit comments

Comments
 (0)