[00/11] completion: complete configuration variables and values after 'git -c <TAB>'
mbox series

Message ID 20190813122652.16468-1-szeder.dev@gmail.com
Headers show
  • completion: complete configuration variables and values after 'git -c <TAB>'
Related show


SZEDER Gábor Aug. 13, 2019, 12:26 p.m. UTC
Recently I've been writing 'git -c foo.bar ...' often enough that
typing our long configuration variables got annoying...

So this patch series teaches our Bash completion script to complete
supported configuration variables and their values after 'git -c
<TAB>', and, while at it, after 'git clone -c <TAB>' as well.

SZEDER Gábor (11):
  completion: fix a typo in a comment
  completion: complete more values of more 'color.*' configuration
  completion: add tests for 'git config' completion
  completion: deduplicate configuration sections
  completion: use 'sort -u' to deduplicate config variable names
  completion: simplify inner 'case' pattern in __gitcomp()
  completion: split _git_config()
  completion: complete configuration sections and variable names for
    'git -c'
  completion: complete values of configuration variables after 'git -c
  completion: complete config variables names and values for 'git clone
  completion: complete config variables and values for 'git clone

 contrib/completion/git-completion.bash | 244 ++++++++++++++++++-------
 t/t9902-completion.sh                  |  63 +++++++
 2 files changed, 243 insertions(+), 64 deletions(-)