Commit d69bad8e authored by Felipe Contreras's avatar Felipe Contreras Committed by Marc Cornellà
Browse files

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


Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
parent 65f34ce8
...@@ -39,7 +39,7 @@ if [ -z "$script" ]; then ...@@ -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 () ...@@ -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 ()
......
This diff is collapsed.
#!/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}" &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment