gitfast: downgrade to upstream v2.16 (#7918)

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras 2019-06-08 09:33:56 -05:00 committed by Marc Cornellà
parent 65f34ce80e
commit d69bad8eb4
3 changed files with 757 additions and 501 deletions

View File

@ -39,7 +39,7 @@ if [ -z "$script" ]; then
test -f $e && script="$e" && break test -f $e && script="$e" && break
done done
fi fi
GIT_SOURCING_ZSH_COMPLETION=y . "$script" ZSH_VERSION='' . "$script"
__gitcomp () __gitcomp ()
{ {
@ -93,22 +93,13 @@ __gitcomp_nl_append ()
compadd -Q -S "${4- }" -p "${2-}" -- ${=1} && _ret=0 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 () __gitcomp_file ()
{ {
emulate -L zsh emulate -L zsh
local IFS=$'\n' local IFS=$'\n'
compset -P '*[=:]' compset -P '*[=:]'
compadd -p "${2-}" -f -- ${=1} && _ret=0 compadd -Q -p "${2-}" -f -- ${=1} && _ret=0
} }
__git_zsh_bash_func () __git_zsh_bash_func ()

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
url="https://git.kernel.org/pub/scm/git/git.git/plain/contrib/completion" url="https://git.kernel.org/pub/scm/git/git.git/plain/contrib/completion"
version="2.21.0" version="2.16.0"
curl -s -o _git "${url}/git-completion.zsh?h=v${version}" && curl -s -o _git "${url}/git-completion.zsh?h=v${version}" &&
curl -s -o git-completion.bash "${url}/git-completion.bash?h=v${version}" && curl -s -o git-completion.bash "${url}/git-completion.bash?h=v${version}" &&