completion: zsh: fix name due to broken autoloading
authorFelipe Contreras <redacted>
Sun, 25 Oct 2020 03:13:16 +0000 (22:13 -0500)
committerJunio C Hamano <redacted>
Mon, 26 Oct 2020 22:23:26 +0000 (15:23 -0700)
commit5eb25bcf0f89a40627b8c23af408af1892705372
treec0dc118750f3484c20597e24c70922ab42044420
parent4ce2b5167bb63e7001e43ec5386528fb77c088fa
completion: zsh: fix name due to broken autoloading

Commit 176f5adfdb wrongly changed the installation path to
'~/.zsh/git-completion.zsh', this ensures the script is not
automatically loaded.

The whole point of adding the script to the fpath variable is that it's
autoloaded after typing 'git<tab>', which won't happen unless it's named
_git.

I've changed the wording so it's crystal clear the name of the file
*must* be '_git'.

http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Autoloaded-files

Cc: Maxim Belsky <redacted>
Cc: Johannes Schindelin <redacted>
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.zsh
git clone https://git.99rst.org/PROJECT