Browse Source

Revert "completion: don't declare 'local words' to make zsh happy"

This reverts commit 3bee6a4733, as the fix
that will be used by upstream zsh folks should make it unnecessary.
maint
Junio C Hamano 14 years ago
parent
commit
1a0c9a305f
  1. 8
      contrib/completion/git-completion.bash

8
contrib/completion/git-completion.bash

@ -2608,11 +2608,9 @@ _git () @@ -2608,11 +2608,9 @@ _git ()
if [[ -n ${ZSH_VERSION-} ]]; then
emulate -L bash
setopt KSH_TYPESET
else
local words
fi

local cur cword prev
local cur words cword prev
_get_comp_words_by_ref -n =: cur words cword prev
while [ $c -lt $cword ]; do
i="${words[c]}"
@ -2661,11 +2659,9 @@ _gitk () @@ -2661,11 +2659,9 @@ _gitk ()
if [[ -n ${ZSH_VERSION-} ]]; then
emulate -L bash
setopt KSH_TYPESET
else
local words
fi

local cur cword prev
local cur words cword prev
_get_comp_words_by_ref -n =: cur words cword prev

__git_has_doubledash && return

Loading…
Cancel
Save