From: Junio C Hamano Date: Tue, 7 Apr 2026 21:59:28 +0000 (-0700) Subject: Merge branch 'th/backfill-auto-detect-sparseness-fix' X-Git-Tag: v2.54.0-rc1~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f1743ad69a492d1ca3773bfdddf7f5ffd278c19b;p=thirdparty%2Fgit.git Merge branch 'th/backfill-auto-detect-sparseness-fix' "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 --- f1743ad69a492d1ca3773bfdddf7f5ffd278c19b diff --cc builtin/backfill.c index 2c5ce56fb7,77d154958c..d794dd842f --- a/builtin/backfill.c +++ b/builtin/backfill.c @@@ -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(),