Commit 776009d
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 <[email protected]>
Acked-by: SZEDER Gábor <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 7a3187e commit 776009d
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2492 | 2492 | | |
2493 | 2493 | | |
2494 | 2494 | | |
| 2495 | + | |
2495 | 2496 | | |
2496 | 2497 | | |
2497 | | - | |
| 2498 | + | |
2498 | 2499 | | |
2499 | 2500 | | |
2500 | 2501 | | |
| |||
0 commit comments