From: Felipe Contreras Date: Wed, 28 Oct 2020 02:07:08 +0000 (-0600) Subject: completion: zsh: add simple version check X-Git-Tag: v2.30.0-rc0~105^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=35a4170d8656b27d08458c3c381dd163199da4f3;p=thirdparty%2Fgit.git completion: zsh: add simple version check A lot of people are confused about which completion script they are using; Zsh's Git script, or Git's Zsh script. Add a simple helper so they can type 'git zsh' and find out if they are running the correct one: this. Signed-off-by: Felipe Contreras Signed-off-by: Junio C Hamano --- diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh index 2956b9d0d8..811d77cb95 100644 --- a/contrib/completion/git-completion.zsh +++ b/contrib/completion/git-completion.zsh @@ -134,6 +134,11 @@ __gitcomp_file_direct () __gitcomp_file "$1" "" } +_git_zsh () +{ + __gitcomp "v1.1" +} + __git_complete_command () { emulate -L zsh