author | SZEDER Gábor <szeder@ira.uka.de> | |
Wed, 5 Mar 2008 19:07:49 +0000 (20:07 +0100) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 11 Mar 2008 00:02:15 +0000 (20:02 -0400) | ||
commit | 5447aac755e5cfb948c627762b4665801811b026 | |
tree | b14e54050cf1508ae0a5adc3aa7f44bae1f29ec3 | tree | snapshot |
parent | ce5a2c956f10f84d8403fc4e94106a6b33a5024a | commit | diff |
bash: fix long option with argument double completion
Pressing TAB right after 'git command --long-option=' results in
'git command --long-option=--long-option=' when the long option requires
an argument, but we don't provide completion for its arguments (e.g.
commit --author=, apply --exclude=). This patch detects these long
options and provides empty completion array for them.
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Pressing TAB right after 'git command --long-option=' results in
'git command --long-option=--long-option=' when the long option requires
an argument, but we don't provide completion for its arguments (e.g.
commit --author=, apply --exclude=). This patch detects these long
options and provides empty completion array for them.
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
contrib/completion/git-completion.bash | diff | blob | history |