The configuration file learned a new "includeIf.<condition>.path"
that includes the contents of the given path only when the
condition holds. This allows you to say "include this work-related
bit only in the repositories under my ~/work/ directory".
* nd/conditional-config-include:
config: add conditional include
config.txt: reflow the second include.path paragraph
config.txt: clarify multiple key values in include.path
@ -102,7 +102,7 @@ test_expect_success 'config modification does not affect includes' '
@@ -102,7 +102,7 @@ test_expect_success 'config modification does not affect includes' '
test_expect_success 'missing include files are ignored' '
cat >.gitconfig <<-\EOF &&
[include]path = foo
[include]path = non-existent
[test]value = yes
EOF
echo yes >expect &&
@ -152,6 +152,62 @@ test_expect_success 'relative includes from stdin line fail' '
@@ -152,6 +152,62 @@ test_expect_success 'relative includes from stdin line fail' '
test_must_fail git config --file - test.one
'
test_expect_success 'conditional include, both unanchored' '