summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6aaaa4)
raw | patch | inline | side by side (parent: b6aaaa4)
author | Stephen Boyd <bebarino@gmail.com> | |
Fri, 9 Oct 2009 06:21:43 +0000 (23:21 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 9 Oct 2009 22:00:24 +0000 (15:00 -0700) |
After commit 511a3fc (wrap git's main usage string., 2009-09-12), the
bash completion for git commands includes COMMAND and [ARGS] when it
shouldn't. Fix this by grepping more strictly for a line with git
commands. It's doubtful whether git will ever have commands starting
with anything besides numbers and letters so this should be fine. At
least by being stricter we'll know when we break the completion earlier.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bash completion for git commands includes COMMAND and [ARGS] when it
shouldn't. Fix this by grepping more strictly for a line with git
commands. It's doubtful whether git will ever have commands starting
with anything besides numbers and letters so this should be fine. At
least by being stricter we'll know when we break the completion earlier.
Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash | patch | blob | history |
index 88b1b3c7a002323f696723c161d88d3dd9766a95..652a47c772a4f251d4925118df74bb3e793a2988 100755 (executable)
return
fi
local i IFS=" "$'\n'
- for i in $(git help -a|egrep '^ ')
+ for i in $(git help -a|egrep '^ [a-zA-Z0-9]')
do
case $i in
*--*) : helper pattern;;