Skip to content

Commit ff2549d

Browse files
Petr Baudisgitster
authored andcommitted
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>
1 parent de5d560 commit ff2549d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,9 @@ __git_porcelain_commands ()
386386
cat-file) : plumbing;;
387387
check-attr) : plumbing;;
388388
check-ref-format) : plumbing;;
389+
checkout-index) : plumbing;;
389390
commit-tree) : plumbing;;
391+
count-objects) : infrequent;;
390392
cvsexportcommit) : export;;
391393
cvsimport) : import;;
392394
cvsserver) : daemon;;
@@ -395,6 +397,7 @@ __git_porcelain_commands ()
395397
diff-index) : plumbing;;
396398
diff-tree) : plumbing;;
397399
fast-import) : import;;
400+
fast-export) : export;;
398401
fsck-objects) : plumbing;;
399402
fetch-pack) : plumbing;;
400403
fmt-merge-msg) : plumbing;;
@@ -404,6 +407,10 @@ __git_porcelain_commands ()
404407
index-pack) : plumbing;;
405408
init-db) : deprecated;;
406409
local-fetch) : plumbing;;
410+
lost-found) : infrequent;;
411+
ls-files) : plumbing;;
412+
ls-remote) : plumbing;;
413+
ls-tree) : plumbing;;
407414
mailinfo) : plumbing;;
408415
mailsplit) : plumbing;;
409416
merge-*) : plumbing;;
@@ -428,6 +435,7 @@ __git_porcelain_commands ()
428435
runstatus) : plumbing;;
429436
sh-setup) : internal;;
430437
shell) : daemon;;
438+
show-ref) : plumbing;;
431439
send-pack) : plumbing;;
432440
show-index) : plumbing;;
433441
ssh-*) : transport;;
@@ -442,6 +450,8 @@ __git_porcelain_commands ()
442450
upload-archive) : plumbing;;
443451
upload-pack) : plumbing;;
444452
write-tree) : plumbing;;
453+
var) : infrequent;;
454+
verify-pack) : infrequent;;
445455
verify-tag) : plumbing;;
446456
*) echo $i;;
447457
esac

0 commit comments

Comments
 (0)