From eb3d46308157e10eb11ec96bcf14b319279d09d3 Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Fri, 7 Jun 2019 10:57:47 -0500 Subject: gitfast: update to upstream v2.21 (#7914) * gitfast: use $OSTYPE again In the last update to upstream this was reverted: a56eac7a (Use OSTYPE instead of uname whenever possible for better speed. (#5496)) Signed-off-by: Felipe Contreras * gitfast: simplify plugin No need to set and unset a variable we use once. Signed-off-by: Felipe Contreras * gitfast: add script to update from upstream This would make easier the process of updating, and also not miss our patches. Signed-off-by: Felipe Contreras * gitfast: update to upstream v2.21 Signed-off-by: Felipe Contreras --- plugins/gitfast/_git | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'plugins/gitfast/_git') diff --git a/plugins/gitfast/_git b/plugins/gitfast/_git index 78a6dbb3d..c003a6771 100644 --- a/plugins/gitfast/_git +++ b/plugins/gitfast/_git @@ -39,7 +39,7 @@ if [ -z "$script" ]; then test -f $e && script="$e" && break done fi -ZSH_VERSION='' . "$script" +GIT_SOURCING_ZSH_COMPLETION=y . "$script" __gitcomp () { @@ -93,13 +93,22 @@ __gitcomp_nl_append () compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0 } +__gitcomp_file_direct () +{ + emulate -L zsh + + local IFS=$'\n' + compset -P '*[=:]' + compadd -f -- ${=1} && _ret=0 +} + __gitcomp_file () { emulate -L zsh local IFS=$'\n' compset -P '*[=:]' - compadd -Q -p "${2-}" -f -- ${=1} && _ret=0 + compadd -p "${2-}" -f -- ${=1} && _ret=0 } __git_zsh_bash_func () -- cgit v1.2.3-70-g09d2