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>
Petr Baudis committed
Aug 26, 2008 at 19:11 UTC
ff2549dc9af3fffa8a8285418601d9eab94de7b7
1 file changed
+10
contrib/completion/git-completion.bash
+10
@@ -386,7 +386,9 @@ __git_porcelain_commands ()
386
cat-file) : plumbing;;
387
check-attr) : plumbing;;
388
check-ref-format) : plumbing;;
389
+ checkout-index) : plumbing;;
390
commit-tree) : plumbing;;
391
+ count-objects) : infrequent;;
392
cvsexportcommit) : export;;
393
cvsimport) : import;;
394
cvsserver) : daemon;;
@@ -395,6 +397,7 @@ __git_porcelain_commands ()
397
diff-index) : plumbing;;
398
diff-tree) : plumbing;;
399
fast-import) : import;;
400
+ fast-export) : export;;
401
fsck-objects) : plumbing;;
402
fetch-pack) : plumbing;;
403
fmt-merge-msg) : plumbing;;
@@ -404,6 +407,10 @@ __git_porcelain_commands ()
407
index-pack) : plumbing;;
408
init-db) : deprecated;;
409
local-fetch) : plumbing;;
410
+ lost-found) : infrequent;;
411
+ ls-files) : plumbing;;
412
+ ls-remote) : plumbing;;
413
+ ls-tree) : plumbing;;
414
mailinfo) : plumbing;;
415
mailsplit) : plumbing;;
416
merge-*) : plumbing;;
@@ -428,6 +435,7 @@ __git_porcelain_commands ()
435
runstatus) : plumbing;;
436
sh-setup) : internal;;
437
shell) : daemon;;
438
+ show-ref) : plumbing;;
439
send-pack) : plumbing;;
440
show-index) : plumbing;;
441
ssh-*) : transport;;
@@ -442,6 +450,8 @@ __git_porcelain_commands ()
450
upload-archive) : plumbing;;
451
upload-pack) : plumbing;;
452
write-tree) : plumbing;;
453
+ var) : infrequent;;
454
+ verify-pack) : infrequent;;
455
verify-tag) : plumbing;;
456
*) echo $i;;
457
esac