@matheusbsbs / matheus-bagliano / commits / 051cc54941
Fork 0

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 <tmoschou@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Terry Moschou committed Apr 17, 2020 at 07:11 UTC 051cc549413cc0a56696b207df9c5be2ac64e993
1 file changed +2
contrib/completion/git-completion.zsh
+2
@@ -150,9 +150,11 @@ __git_zsh_cmd_common ()
150 push:'update remote refs along with associated objects'
151 rebase:'forward-port local commits to the updated upstream head'
152 reset:'reset current HEAD to the specified state'
153 + restore:'restore working tree files'
154 rm:'remove files from the working tree and from the index'
155 show:'show various types of objects'
156 status:'show the working tree status'
157 + switch:'switch branches'
158 tag:'create, list, delete or verify a tag object signed with GPG')
159 _describe -t common-commands 'common commands' list && _ret=0
160 }