Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-11 00:14:58 +0400
committerJunio C Hamano <gitster@pobox.com>2011-05-11 00:14:58 +0400
commit2df7683b6e1eace60994244da7d23ea96e17fdc6 (patch)
treeca70d9bea54f2bf11c4fd69d90daa29d21fa6d6f /contrib
parent1a0c9a305f88f979171815cec3548a9caa87a320 (diff)
parent52fd972d5922c95b44e49cd736f67d495a0175f1 (diff)
Merge branch 'fc/completion-zsh' into sg/completion-updates
* fc/completion-zsh: git-completion: fix regression in zsh support
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash8
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8ee82cbae5..d6ddf81d69 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2608,6 +2608,10 @@ _git ()
if [[ -n ${ZSH_VERSION-} ]]; then
emulate -L bash
setopt KSH_TYPESET
+
+ # workaround zsh's bug that leaves 'words' as a special
+ # variable in versions < 4.3.12
+ typeset -h words
fi
local cur words cword prev
@@ -2659,6 +2663,10 @@ _gitk ()
if [[ -n ${ZSH_VERSION-} ]]; then
emulate -L bash
setopt KSH_TYPESET
+
+ # workaround zsh's bug that leaves 'words' as a special
+ # variable in versions < 4.3.12
+ typeset -h words
fi
local cur words cword prev