diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-05-10 13:14:58 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-10 13:14:58 -0700 |
commit | 2df7683b6e1eace60994244da7d23ea96e17fdc6 (patch) | |
tree | ca70d9bea54f2bf11c4fd69d90daa29d21fa6d6f /contrib | |
parent | 1a0c9a305f88f979171815cec3548a9caa87a320 (diff) | |
parent | 52fd972d5922c95b44e49cd736f67d495a0175f1 (diff) | |
download | git-2df7683b6e1eace60994244da7d23ea96e17fdc6.tar.gz |
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-x | contrib/completion/git-completion.bash | 8 |
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 |