summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Moschou <tmoschou@gmail.com>2020-04-17 07:11:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-04-17 19:11:34 (GMT)
commit051cc549413cc0a56696b207df9c5be2ac64e993 (patch)
treec918f7fae3700407845c6cceee609c30d5cd2ef4
parentde49261b050d9cd8ec73842356077bc5b606640f (diff)
downloadgit-051cc549413cc0a56696b207df9c5be2ac64e993.zip
git-051cc549413cc0a56696b207df9c5be2ac64e993.tar.gz
git-051cc549413cc0a56696b207df9c5be2ac64e993.tar.bz2
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>
-rw-r--r--contrib/completion/git-completion.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
index eef4eff..ce47e86 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh
@@ -150,9 +150,11 @@ __git_zsh_cmd_common ()
push:'update remote refs along with associated objects'
rebase:'forward-port local commits to the updated upstream head'
reset:'reset current HEAD to the specified state'
+ restore:'restore working tree files'
rm:'remove files from the working tree and from the index'
show:'show various types of objects'
status:'show the working tree status'
+ switch:'switch branches'
tag:'create, list, delete or verify a tag object signed with GPG')
_describe -t common-commands 'common commands' list && _ret=0
}