git: support nested section options

Closes #614
This commit is contained in:
arcnmx 2019-03-12 16:06:36 -07:00 committed by Robert Helgesson
parent 472d7731d6
commit 95382060eb
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
3 changed files with 58 additions and 14 deletions

View file

@ -12,6 +12,12 @@ multiple=1
multiple=2
name=value
[extra "backcompat.with.dots"]
previously=worked
[extra "subsection"]
value=test
[filter "lfs"]
clean=git-lfs clean -- %f
process=git-lfs filter-process
@ -27,10 +33,10 @@ name=John Doe
signingKey=00112233445566778899AABBCCDDEEFF
[include]
path = ~/path/to/config.inc
path=~/path/to/config.inc
[includeIf "gitdir:~/src/dir"]
path = ~/path/to/conditional.inc
path=~/path/to/conditional.inc
[includeIf "gitdir:~/src/dir"]
path = @git_include_path@
path=@git_include_path@

View file

@ -58,9 +58,11 @@ in
{
aliases.a2 = mkForce "baz";
extraConfig."extra \"backcompat.with.dots\"".previously = "worked";
extraConfig.extra.boolean = true;
extraConfig.extra.integer = 38;
extraConfig.extra.multiple = [2];
extraConfig.extra.subsection.value = "test";
}
];