Skip to content

Commit

Permalink
Merge branch 'fc/completion-zsh' into sg/completion-updates
Browse files Browse the repository at this point in the history
* fc/completion-zsh:
  git-completion: fix regression in zsh support
  • Loading branch information
Junio C Hamano committed May 10, 2011
2 parents 1a0c9a3 + 52fd972 commit 2df7683
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2df7683

Please sign in to comment.