Recently I've been writing 'git -c ...' 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/                  |  63 +++++++
 2 files changed, 243 insertions(+), 64 deletions(-)


Reply via email to