diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-02-09 18:01:40 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-09 10:24:49 -0800 |
commit | b9d7f4b4dbebea34ca8d02be8889884fc3fb90c7 (patch) | |
tree | ae3333a0252d28013a8494f35db91db26d8a567c /list-objects.c | |
parent | 5be1f00a9a701532232f57958efab4be8c959a29 (diff) | |
download | git-b9d7f4b4dbebea34ca8d02be8889884fc3fb90c7.tar.gz |
parse-options: support --git-completion-helper
This option is designed to be used by git-completion.bash. For many
simple cases, what we do in there is usually
__gitcomp "lots of completion options"
which has to be manually updated when a new user-visible option is
added. With support from parse-options, we can write
__gitcomp "$(git command --git-completion-helper)"
and get that list directly from the parser for free. Dangerous/Unpopular
options could be hidden with the new "NOCOMPLETE" flag.
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 'list-objects.c')
0 files changed, 0 insertions, 0 deletions