git/list[1] front-page[2] threads[3] people[4] search[5] about
wed 2026-10-07 17:34 UTC

Re: [GSoC PATCH v2] backfill: auto-detect sparse-checkout from config

From
Derrick Stolee <stolee@gmail.com>
Date
Apr 4, 2026, 17:36 UTC
Message-ID
<e16edc29-a281-42f8-a712-4114d6a3288c@gmail.com>
In-Reply-To
<20260404111557.17220-1-viking4@gmail.com>
On 4/4/26 7:15 AM, Trieu Huynh wrote:
Show 14 quoted lines
> From: Trieu Huynh <vikingtc4@gmail.com>
> 
> Commit 85127bcdea ("backfill: assume --sparse when sparse-checkout is
> enabled") intended for 'git backfill' to consult the repository
> configuration when the user does not pass '--sparse' or
> '--no-sparse' on the command line. It added the sentinel check:
> 
>      if (ctx->sparse < 0)
>          ctx->sparse = cfg->apply_sparse_checkout;
> 
> However, the ctx->sparse field is initialized to 0 instead of -1,
> so this guard never triggers. Consequently, the repository config
> (core.sparseCheckout) is never checked, and the command always
> performs a full backfill even when sparse-checkout is enabled.
Thanks for adding this context. This patch LGTM.

nit: it helps to reply to your previous version [1] so the history of your patch series shows up in a single thread. No need to fix it now because this version should be final. I'm a fan of using GitGitGadget to avoid making these kinds of mistakes, but you can use 'git send-email --in-reply-to=<id>' [2] in the future.

[1] https://lore.kernel.org/git/20260402191359.11304-1-viking4@gmail.com/

[2] https://git-scm.com/docs/git-send-email#Documentation/git-send-email.txt---in-reply-toidentifier

Thanks, -Stolee

Previous: Trieu HuynhNext: Junio C Hamano
Message 2 of 3 in “backfill: auto-detect sparse-checkout from config”
  1. backfill: auto-detect sparse-checkout from configTrieu Huynh, Apr 4, 2026
  2. Derrick StoleeApr 4, 2026
  3. Junio C HamanoApr 6, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.