diff options
author | SZEDER Gábor <szeder.dev@gmail.com> | 2019-08-13 14:26:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-13 12:31:04 -0700 |
commit | dd33472831756895a86153c651c18580a6dccbc8 (patch) | |
tree | 03efbb35cd3556f8d2272343b977176e2b18c034 /COPYING | |
parent | completion: complete configuration sections and variable names for 'git -c' (diff) | |
download | tgif-dd33472831756895a86153c651c18580a6dccbc8.tar.xz |
completion: complete values of configuration variables after 'git -c var='
'git config' expects a configuration variable's name and value in
separate options, so we complete values as they stand on their own on
the command line. 'git -c', however, expects them in a single option
joined by a '=' character, so we should be able to complete values
when they are following 'section.name=' in the same word.
Add new options to the __git_complete_config_variable_value() function
to allow callers to specify the current word to be completed and the
configuration variable whose value is to be completed, and use these
to complete possible values after 'git -c 'section.name=<TAB>'.
Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions