diff options
| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2018-02-09 18:01:43 +0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-02-09 10:24:50 -0800 |
| commit | d401f3debc5807092d68c95a89b363b65bbc8947 (patch) | |
| tree | 707ecfa80065dd7851a2d5fb0344d42de72cbe4d /t/t4013/diff.diff_initial..side | |
| parent | parse-options: let OPT__FORCE take optional flags argument (diff) | |
| download | git-d401f3debc5807092d68c95a89b363b65bbc8947.tar.gz git-d401f3debc5807092d68c95a89b363b65bbc8947.zip | |
git-completion.bash: introduce __gitcomp_builtin
This is a __gitcomp wrapper that will execute
git ... --git-completion-helper
to get the list of completable options. The call will be made only
once and cached to avoid performance issues, especially on Windows.
__gitcomp_builtin() allows callers to change its output a bit by adding
some more options, or removing some.
- Current --git-completion-helper for example does not output --no-foo
form, this has to be added manually by __gitcomp_builtin() callers
when necessary
- Some options from --git-completion-helper should only be available in
certain conditions (e.g. --continue and friends). __gitcomp_builtin()
callers can remove them if the conditions are not met.
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 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
