]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: tcsh: Fix regression by drop of wrapper functions
authorTakashi Iwai <tiwai@suse.de>
Wed, 18 Aug 2021 13:27:29 +0000 (15:27 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Aug 2021 20:58:27 +0000 (13:58 -0700)
The cleanup of old compat wrappers in bash completion caused a
regression on tcsh completion that still uses them.
Let's update the tcsh call site as well for addressing it.

Fixes: 441ecdab37fe ("completion: bash: remove old compat wrappers")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.tcsh

index 4a790d8f4ec18e0bfedbc7f8ce9f2d4291c284e4..ba797e5b3cd59783c0e743fd2df8962918b8a40a 100644 (file)
@@ -80,8 +80,9 @@ else
        COMP_CWORD=\$((\${#COMP_WORDS[@]}-1))
 fi
 
-# Call _git() or _gitk() of the bash script, based on the first argument
-_\${1}
+# Call __git_wrap__git_main() or __git_wrap__gitk_main() of the bash script,
+# based on the first argument
+__git_wrap__\${1}_main
 
 IFS=\$'\n'
 if [ \${#COMPREPLY[*]} -eq 0 ]; then