Skip to content

Commit

Permalink
gitfast: update to upstream v2.21 (ohmyzsh#7914)
Browse files Browse the repository at this point in the history
* gitfast: use $OSTYPE again

In the last update to upstream this was reverted:

 a56eac7 (Use OSTYPE instead of uname whenever possible for better speed. (ohmyzsh#5496))

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>

* gitfast: simplify plugin

No need to set and unset a variable we use once.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>

* 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 <felipe.contreras@gmail.com>

* gitfast: update to upstream v2.21

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
  • Loading branch information
felipec authored and lewg committed Nov 25, 2019
1 parent c105e2a commit cbdda2b
Show file tree
Hide file tree
Showing 6 changed files with 572 additions and 762 deletions.
13 changes: 11 additions & 2 deletions plugins/gitfast/_git
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
{
Expand Down Expand Up @@ -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 ()
Expand Down
Loading

0 comments on commit cbdda2b

Please sign in to comment.