summaryrefslogtreecommitdiff
path: root/contrib/completion/git-completion.bash
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2013-07-30 09:16:36 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2013-07-30 09:16:37 -0700
commit1ddc11a6fd675269529a7e6a5478cdb3fcf966d1 (patch)
tree079721cef8a6bf421ab4e1b351180f7b3c1d0860 /contrib/completion/git-completion.bash
parentcommit.h: drop redundant comment (diff)
parentgit-completion.bash: replace zsh notation that breaks bash 3.X (diff)
downloadtgif-1ddc11a6fd675269529a7e6a5478cdb3fcf966d1.tar.xz
Merge branch 'bc/completion-for-bash-3.0'
* bc/completion-for-bash-3.0: git-completion.bash: replace zsh notation that breaks bash 3.X
Diffstat (limited to 'contrib/completion/git-completion.bash')
-rw-r--r--contrib/completion/git-completion.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index cd509a5d63..32d1b45c7e 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2581,7 +2581,7 @@ if [[ -n ${ZSH_VERSION-} ]]; then
--*=*|*.) ;;
*) c="$c " ;;
esac
- array+=("$c")
+ array[$#array+1]="$c"
done
compset -P '*[=:]'
compadd -Q -S '' -p "${2-}" -a -- array && _ret=0