Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'bc/completion-for-bash-3.0'
author
Junio C Hamano
<gitster@pobox.com>
Tue, 30 Jul 2013 16:16:36 +0000
(09:16 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 30 Jul 2013 16:16:37 +0000
(09:16 -0700)
* bc/completion-for-bash-3.0:
git-completion.bash: replace zsh notation that breaks bash 3.X
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
(from parent 1:
8f6a3e5
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index cd509a5d63922e05d5c2f5239a8acdd7baab3047..32d1b45c7e9bbfc721581f97ae4ca88bc2e0b6e9 100644
(file)
--- 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