]> git.ipfire.org Git - thirdparty/git.git/commit
config.txt: document include, includeIf
authorManuel Boni <ziosombrero@gmail.com>
Sat, 16 Jul 2022 20:13:43 +0000 (20:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Jul 2022 21:23:42 +0000 (14:23 -0700)
commit07aed5801722635684b5f0f8f3c26903fdd11f8e
tree31e7996c8f34c9a966b67b9b58fe5e4107a50cd1
parent359da658ae32d9a7e5e93ac173fc221352b62917
config.txt: document include, includeIf

Git config's tab completion does not yet know about the "include"
and "includeIf" sections, nor the related "path" variable.

Add a description for these two sections in
'Documentation/config/includeif.txt', which points to git-config's
documentation, specifically the "Includes" and "Conditional Includes"
subsections.

As a side effect, tab completion can successfully complete the
'include', 'includeIf', and 'include.add' expressions.
This effect is tested by two new ad-hoc tests.
Variable completion only works for "include" for now.

Credit for the ideas behind this patch goes to
Ævar Arnfjörð Bjarmason.

Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Manuel Boni <ziosombrero@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/config/includeif.txt [new file with mode: 0644]
t/t9902-completion.sh