]> git.ipfire.org Git - thirdparty/git.git/commit - contrib/completion/git-completion.bash
completion: handle unstuck form of base git options
authorJohn Keeping <john@keeping.me.uk>
Sat, 22 Jun 2013 11:25:17 +0000 (12:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 30 Jun 2013 22:58:25 +0000 (15:58 -0700)
commit776009d1b2bcfbd001767758fea0c2ff0e74383d
tree7c222a0b3f6431b1d11a48810f87fb42562425a8
parent7a3187eb788854ed3a20fee30b27e68430f753b7
completion: handle unstuck form of base git options

git-completion.bash's parsing of the command name relies on everything
preceding it starting with '-' unless it is the "-c" option.  This
allows users to use the stuck form of "--work-tree=<path>" and
"--namespace=<path>" but not the unstuck forms "--work-tree <path>" and
"--namespace <path>".  Fix this.

Similarly, the completion only handles the stuck form "--git-dir=<path>"
and not "--git-dir <path>", so fix this as well.

Signed-off-by: John Keeping <john@keeping.me.uk>
Acked-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash