{"thread":{"id":"64411","subject":"[PATCH] svn: add multi-line support for ignore-paths and include-paths","startedAt":"2025-10-31T13:26:40Z","lastAt":"2025-10-31T13:26:40Z","messageCount":1,"participants":["Pavel Dydyshko via GitGitGadget"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"530027","messageId":"pull.2091.git.git.1761917197824.gitgitgadget@gmail.com","threadId":"64411","inReplyTo":null,"subject":"[PATCH] svn: add multi-line support for ignore-paths and include-paths","fromName":"Pavel Dydyshko via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2025-10-31T13:26:37Z","receivedAt":"2025-10-31T13:26:40Z","isPatch":true,"sender":{"key":"name:Pavel Dydyshko","avatar":null},"body":"From: Pavel Dydyshka <paul.dydyshko@gmail.com>\n\nAllow multiple ignore-paths and include-paths entries in config. Instead\nof reading single entry and storing it as is editor now concatenates all\nvalues through a '|'\n\nSigned-off-by: Pavel Dydyshka <paul.dydyshko@gmail.com>\n---\n    svn: add multi-line support for ignore-paths and include-paths\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2091%2Fpddshk%2Fsvn-multi-line-ignore-include-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2091/pddshk/svn-multi-line-ignore-include-v1\nPull-Request: https://github.com/git/git/pull/2091\n\n perl/Git/SVN/Fetcher.pm | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/perl/Git/SVN/Fetcher.pm b/perl/Git/SVN/Fetcher.pm\nindex 968309e6d6..b2991480e1 100644\n--- a/perl/Git/SVN/Fetcher.pm\n+++ b/perl/Git/SVN/Fetcher.pm\n@@ -31,15 +31,15 @@ sub new {\n \t# override options set in an [svn-remote \"...\"] section\n \t$repo_id = $git_svn->{repo_id};\n \tmy $k = \"svn-remote.$repo_id.ignore-paths\";\n-\tmy $v = eval { command_oneline('config', '--get', $k) };\n-\t$self->{ignore_regex} = $v;\n+\tmy @ignores = eval { command('config', '--get-all', $k) };\n+\t$self->{ignore_regex} = join('|', @ignores) if @ignores;\n \n \t$k = \"svn-remote.$repo_id.include-paths\";\n-\t$v = eval { command_oneline('config', '--get', $k) };\n-\t$self->{include_regex} = $v;\n+\tmy @includes = eval { command('config', '--get-all', $k) };\n+\t$self->{include_regex} = join('|', @includes) if @includes;\n \n \t$k = \"svn-remote.$repo_id.preserve-empty-dirs\";\n-\t$v = eval { command_oneline('config', '--get', '--bool', $k) };\n+\tmy $v = eval { command_oneline('config', '--get', '--bool', $k) };\n \tif ($v && $v eq 'true') {\n \t\t$_preserve_empty_dirs = 1;\n \t\t$k = \"svn-remote.$repo_id.placeholder-filename\";\n\nbase-commit: 419c72cb8ada252b260efc38ff91fe201de7c8c3\n-- \ngitgitgadget\n"}]}