bash: don't offer remote transport helpers as subcommands
authorSZEDER Gábor <szeder@ira.uka.de>
Fri, 22 Jan 2010 10:54:51 +0000 (11:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jan 2010 20:36:12 +0000 (12:36 -0800)
Since commits a2d725b7 (Use an external program to implement fetching
with curl, 2009-08-05) and c9e388bb (Make the
"traditionally-supported" URLs a special case, 2009-09-03) remote
transport helpers like 'remote-ftp' and 'remote-curl' are offered by the
completion script as available subcommands.  Not good, since they are
helpers, therefore should not be offered, so filter them out.

Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 1a9943c012d2efc47132e09d383332cb5efaead2..1a762e88e7fcf3b36b3acdffa3e8ec18e3644e2e 100755 (executable)
@@ -571,6 +571,7 @@ __git_list_porcelain_commands ()
                read-tree)        : plumbing;;
                receive-pack)     : plumbing;;
                reflog)           : plumbing;;
+               remote-*)         : transport;;
                repo-config)      : deprecated;;
                rerere)           : plumbing;;
                rev-list)         : plumbing;;