]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'th/backfill-auto-detect-sparseness-fix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 7 Apr 2026 21:59:28 +0000 (14:59 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Apr 2026 21:59:28 +0000 (14:59 -0700)
"git backfill" is capable of auto-detecting a sparsely checked out
working tree, which was broken.

* th/backfill-auto-detect-sparseness-fix:
  backfill: auto-detect sparse-checkout from config

1  2 
builtin/backfill.c
t/t5620-backfill.sh

index 2c5ce56fb7ddcb5276560c4e7f249d7450bf8c0c,77d154958cb27576da84522bfada71b4d5e14ac4..d794dd842f65ce7e19c47eba0759d0ab26ae055f
@@@ -119,12 -120,11 +119,12 @@@ int cmd_backfill(int argc, const char *
                .repo = repo,
                .current_batch = OID_ARRAY_INIT,
                .min_batch_size = 50000,
-               .sparse = 0,
+               .sparse = -1,
 +              .revs = REV_INFO_INIT,
        };
        struct option options[] = {
 -              OPT_INTEGER(0, "min-batch-size", &ctx.min_batch_size,
 -                          N_("Minimum number of objects to request at a time")),
 +              OPT_UNSIGNED(0, "min-batch-size", &ctx.min_batch_size,
 +                           N_("Minimum number of objects to request at a time")),
                OPT_BOOL(0, "sparse", &ctx.sparse,
                         N_("Restrict the missing objects to the current sparse-checkout")),
                OPT_END(),
Simple merge