diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-07-27 16:16:53 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-27 16:16:53 (GMT) |
commit | 6fa54b8fb5f2658630a27c85b694d92001812cc2 (patch) | |
tree | 5f3653dc7779c20e81deb34519a1ce89cab3ffa8 /t | |
parent | a88527203f0087114d4429b7f49bb6f79798d15a (diff) | |
parent | 07aed5801722635684b5f0f8f3c26903fdd11f8e (diff) | |
download | git-6fa54b8fb5f2658630a27c85b694d92001812cc2.zip git-6fa54b8fb5f2658630a27c85b694d92001812cc2.tar.gz git-6fa54b8fb5f2658630a27c85b694d92001812cc2.tar.bz2 |
Merge branch 'mb/config-document-include'
Add missing documentation for "include" and "includeIf" features in
"git config" file format, which incidentally teaches the command
line completion to include them in its offerings.
* mb/config-document-include:
config.txt: document include, includeIf
Diffstat (limited to 't')
-rwxr-xr-x | t/t9902-completion.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 31526e6..43de868 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -2485,6 +2485,13 @@ test_expect_success 'git config - section' ' EOF ' +test_expect_success 'git config - section include, includeIf' ' + test_completion "git config inclu" <<-\EOF + include.Z + includeIf.Z + EOF +' + test_expect_success 'git config - variable name' ' test_completion "git config log.d" <<-\EOF log.date Z @@ -2493,6 +2500,12 @@ test_expect_success 'git config - variable name' ' EOF ' +test_expect_success 'git config - variable name include' ' + test_completion "git config include.p" <<-\EOF + include.path Z + EOF +' + test_expect_success 'git config - value' ' test_completion "git config color.pager " <<-\EOF false Z |