summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-05-20 20:39:59 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-21 13:23:14 +0900
commit6bb2dc0b9472a84c7d17ee93bda28a7c1c97d415 (patch)
treea7e2eb1915f25ed24190aaacbf2e26e9146c8737 /Documentation
parentgit --list-cmds: collect command list in a string_list (diff)
downloadtgif-6bb2dc0b9472a84c7d17ee93bda28a7c1c97d415.tar.xz
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/git.txt b/Documentation/git.txt
index 2800e3d188..c01477ab5e 100644
--- a/Documentation/git.txt
+++ b/Documentation/git.txt
@@ -167,7 +167,8 @@ foo.bar= ...`) sets `foo.bar` to the empty string which `git config
List commands by group. This is an internal/experimental
option and may change or be removed in the future. Supported
groups are: builtins, parseopt (builtin commands that use
- parse-options).
+ parse-options), main (all commands in libexec directory),
+ others (all other commands in `$PATH` that have git- prefix).
GIT COMMANDS
------------