Skip to content

Commit

Permalink
Merge branch 'fc/completion-zsh' into maint
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 26, 2011
2 parents 5590fe7 + 52fd972 commit 9e0ec12
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 @@ -2710,6 +2710,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
Expand Down Expand Up @@ -2761,6 +2765,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

__git_has_doubledash && return
Expand Down

0 comments on commit 9e0ec12

Please sign in to comment.