Skip to content

completion: complete configuration variables and values after 'git -c <TAB>'

SZEDER Gábor git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11completion: fix a typo in a commentcontrib/completion/git-completion.bash+1 -10 replies
2/11completion: complete more values of more 'color.*' configuration variablescontrib/completion/git-completion.bash+4 -50 replies
3/11completion: add tests for 'git config' completiont/t9902-completion.sh+21 -00 replies
4/11completion: deduplicate configuration sectionscontrib/completion/git-completion.bash t/t9902-completion.sh+10 -20 replies
5/11completion: use 'sort -u' to deduplicate config variable namescontrib/completion/git-completion.bash+1 -10 replies
6/11completion: simplify inner 'case' pattern in __gitcomp()contrib/completion/git-completion.bash+2 -20 replies
7/11completion: split _git_config()contrib/completion/git-completion.bash+30 -90 replies
8/11completion: complete configuration sections and variable names for 'git -c'contrib/completion/git-completion.bash t/t9902-completion.sh+60 -130 replies
9/11completion: complete values of configuration variables after 'git -c var='contrib/completion/git-completion.bash t/t9902-completion.sh+48 -240 replies
10/11completion: complete config variables names and values for 'git clone -c'contrib/completion/git-completion.bash+6 -00 replies
11/11completion: complete config variables and values for 'git clone --config='contrib/completion/git-completion.bash t/t9902-completion.sh+70 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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
variables
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
    var='
  completion: complete config variables names and values for 'git clone
    -c'
  completion: complete config variables and values for 'git clone
    --config='
 contrib/completion/git-completion.bash | 244 ++++++++++++++++++-------
 t/t9902-completion.sh                  |  63 +++++++
 2 files changed, 243 insertions(+), 64 deletions(-)
Signature · 1 line
2.23.0.rc2.350.gf4fdc32db7