diff options
Diffstat (limited to 't/t9902-completion.sh')
-rwxr-xr-x | t/t9902-completion.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 008fba7c89..bf60a11fa8 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -1719,6 +1719,20 @@ test_expect_success 'git config - value' ' EOF ' +test_expect_success 'git -c - section' ' + test_completion "git -c br" <<-\EOF + branch.Z + browser.Z + EOF +' + +test_expect_success 'git -c - variable name' ' + test_completion "git -c log.d" <<-\EOF + log.date=Z + log.decorate=Z + EOF +' + test_expect_success 'sourcing the completion script clears cached commands' ' __git_compute_all_commands && verbose test -n "$__git_all_commands" && |