bash completion: Hide more plumbing commands

git <tab><tab> still shows way too many commands, some of them
are clearly plumbing. This patch hides the plumbing commands
liberally (that is, in special cases, users still might want to
call one of the hidden commands, a *normal* workflow should never
involve these, though - and if it does, we have a UI problem anyway).

Signed-off-by: Petr Baudis <pasky@suse.cz>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Petr Baudis 2008-08-26 19:11:44 +02:00 committed by Junio C Hamano
parent de5d560c99
commit ff2549dc9a

View file

@ -386,7 +386,9 @@ __git_porcelain_commands ()
cat-file) : plumbing;; cat-file) : plumbing;;
check-attr) : plumbing;; check-attr) : plumbing;;
check-ref-format) : plumbing;; check-ref-format) : plumbing;;
checkout-index) : plumbing;;
commit-tree) : plumbing;; commit-tree) : plumbing;;
count-objects) : infrequent;;
cvsexportcommit) : export;; cvsexportcommit) : export;;
cvsimport) : import;; cvsimport) : import;;
cvsserver) : daemon;; cvsserver) : daemon;;
@ -395,6 +397,7 @@ __git_porcelain_commands ()
diff-index) : plumbing;; diff-index) : plumbing;;
diff-tree) : plumbing;; diff-tree) : plumbing;;
fast-import) : import;; fast-import) : import;;
fast-export) : export;;
fsck-objects) : plumbing;; fsck-objects) : plumbing;;
fetch-pack) : plumbing;; fetch-pack) : plumbing;;
fmt-merge-msg) : plumbing;; fmt-merge-msg) : plumbing;;
@ -404,6 +407,10 @@ __git_porcelain_commands ()
index-pack) : plumbing;; index-pack) : plumbing;;
init-db) : deprecated;; init-db) : deprecated;;
local-fetch) : plumbing;; local-fetch) : plumbing;;
lost-found) : infrequent;;
ls-files) : plumbing;;
ls-remote) : plumbing;;
ls-tree) : plumbing;;
mailinfo) : plumbing;; mailinfo) : plumbing;;
mailsplit) : plumbing;; mailsplit) : plumbing;;
merge-*) : plumbing;; merge-*) : plumbing;;
@ -428,6 +435,7 @@ __git_porcelain_commands ()
runstatus) : plumbing;; runstatus) : plumbing;;
sh-setup) : internal;; sh-setup) : internal;;
shell) : daemon;; shell) : daemon;;
show-ref) : plumbing;;
send-pack) : plumbing;; send-pack) : plumbing;;
show-index) : plumbing;; show-index) : plumbing;;
ssh-*) : transport;; ssh-*) : transport;;
@ -442,6 +450,8 @@ __git_porcelain_commands ()
upload-archive) : plumbing;; upload-archive) : plumbing;;
upload-pack) : plumbing;; upload-pack) : plumbing;;
write-tree) : plumbing;; write-tree) : plumbing;;
var) : infrequent;;
verify-pack) : infrequent;;
verify-tag) : plumbing;; verify-tag) : plumbing;;
*) echo $i;; *) echo $i;;
esac esac