]> git.ipfire.org Git - thirdparty/git.git/commit
completion: implement and use --list-cmds=main,others
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 20 May 2018 18:39:59 +0000 (20:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 May 2018 04:23:14 +0000 (13:23 +0900)
commit6bb2dc0b9472a84c7d17ee93bda28a7c1c97d415
treea7e2eb1915f25ed24190aaacbf2e26e9146c8737
parente5d7a61953c236fbc468bc1bb01383766d2cb55b
completion: implement and use --list-cmds=main,others

This is part of the effort to break down and provide commands by
category in machine-readable form. This could be helpful later on when
completion script switches to use --list-cmds for selecting
completable commands. It would be much easier for the user to choose
to complete _all_ commands instead of the default selection by passing
different values to --list-cmds in git-completino.bash.

While at there, replace "git help -a" in git-completion.bash with
--list-cmds since it's better suited for this task.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git.txt
contrib/completion/git-completion.bash
git.c
help.c
help.h