]> git.ipfire.org Git - thirdparty/git.git/commitdiff
scalar: enable path-walk during push via config
authorDerrick Stolee <stolee@gmail.com>
Fri, 16 May 2025 18:11:59 +0000 (18:11 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 May 2025 19:15:40 +0000 (12:15 -0700)
Repositories registered with Scalar are expected to be client-only
repositories that are rather large. This means that they are more likely to
be good candidates for using the --path-walk option when running 'git
pack-objects', especially under the hood of 'git push'. Enable this config
in Scalar repositories.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
scalar.c

index da42b4be0cc9b6b3fd86861f37d9c8a9cf69bbcf..bf638fa34b80bd80e1dde2d865e1c0447e1dabf9 100644 (file)
--- a/scalar.c
+++ b/scalar.c
@@ -170,6 +170,7 @@ static int set_recommended_config(int reconfigure)
                { "core.autoCRLF", "false" },
                { "core.safeCRLF", "false" },
                { "fetch.showForcedUpdates", "false" },
+               { "pack.usePathWalk", "true" },
                { NULL, NULL },
        };
        int i;