diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-08-06 01:51:36 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-06 01:51:36 +0300 |
commit | d16978517c20911cbef6f98b78c6ec84ae1be57d (patch) | |
tree | 41a6fe423dcac26f675c46e7caf53007ec0e9b54 /t | |
parent | a75163119c0f99cf3abff495c0fa35e55cd4cfa1 (diff) | |
parent | 07aed5801722635684b5f0f8f3c26903fdd11f8e (diff) |
Merge branch 'mb/config-document-include' into maint
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.
source: <pull.1285.v2.git.1658002423864.gitgitgadget@gmail.com>
* 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 31526e6b64..43de868b80 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 |