teach bash completion to treat commands with "--" as a helper
There is a convention that commands containing a double-dash are implementation details and not to be used by mortals. We should automatically remove them from the completion suggestions as such. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
5249997735
commit
718a087a47
|
@ -291,7 +291,7 @@ __git_commands ()
|
||||||
for i in $(git help -a|egrep '^ ')
|
for i in $(git help -a|egrep '^ ')
|
||||||
do
|
do
|
||||||
case $i in
|
case $i in
|
||||||
add--interactive) : plumbing;;
|
*--*) : helper pattern;;
|
||||||
applymbox) : ask gittus;;
|
applymbox) : ask gittus;;
|
||||||
applypatch) : ask gittus;;
|
applypatch) : ask gittus;;
|
||||||
archimport) : import;;
|
archimport) : import;;
|
||||||
|
@ -308,7 +308,6 @@ __git_commands ()
|
||||||
diff-tree) : plumbing;;
|
diff-tree) : plumbing;;
|
||||||
fast-import) : import;;
|
fast-import) : import;;
|
||||||
fsck-objects) : plumbing;;
|
fsck-objects) : plumbing;;
|
||||||
fetch--tool) : plumbing;;
|
|
||||||
fetch-pack) : plumbing;;
|
fetch-pack) : plumbing;;
|
||||||
fmt-merge-msg) : plumbing;;
|
fmt-merge-msg) : plumbing;;
|
||||||
for-each-ref) : plumbing;;
|
for-each-ref) : plumbing;;
|
||||||
|
|
Loading…
Reference in New Issue