)]}'
{
  "commit": "339eba65a7f8aa596199e04f45683c48a1562b9c",
  "tree": "e49d6bb563bfa6e255fd590daf5b2b47d9ab0e3f",
  "parents": [
    "e565f3755342caf1d21e22359eaf09ec11d8c0ae"
  ],
  "author": {
    "name": "Trieu Huynh",
    "email": "vikingtc4@gmail.com",
    "time": "Sat Apr 04 18:15:57 2026 +0700"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Apr 06 09:26:08 2026 -0700"
  },
  "message": "backfill: auto-detect sparse-checkout from config\n\nCommit 85127bcdea (\"backfill: assume --sparse when sparse-checkout is\nenabled\") intended for \u0027git backfill\u0027 to consult the repository\nconfiguration when the user does not pass \u0027--sparse\u0027 or\n\u0027--no-sparse\u0027 on the command line. It added the sentinel check:\n\n    if (ctx-\u003esparse \u003c 0)\n        ctx-\u003esparse \u003d cfg-\u003eapply_sparse_checkout;\n\nHowever, the ctx-\u003esparse field is initialized to 0 instead of -1,\nso this guard never triggers. Consequently, the repository config\n(core.sparseCheckout) is never checked, and the command always\nperforms a full backfill even when sparse-checkout is enabled.\n\nFix this by initializing ctx-\u003esparse to -1, ensuring the existing\nfallback logic correctly reads the repository configuration when\nno explicit flags are provided.\n\nAdd a test to verify that \u0027git backfill\u0027 automatically respects\nsparse-checkout settings when no flags are passed.\n\nSigned-off-by: Trieu Huynh \u003cvikingtc4@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "33e1ea2f84ff6b09ef99408d6878808bb6c23017",
      "old_mode": 33188,
      "old_path": "builtin/backfill.c",
      "new_id": "77d154958cb27576da84522bfada71b4d5e14ac4",
      "new_mode": 33188,
      "new_path": "builtin/backfill.c"
    },
    {
      "type": "modify",
      "old_id": "58c81556e72c899a6ff5a7a7d0169441bb62aa8f",
      "old_mode": 33261,
      "old_path": "t/t5620-backfill.sh",
      "new_id": "bed4987124f9dd6f68724fb1d58b0bbaca1d27c1",
      "new_mode": 33261,
      "new_path": "t/t5620-backfill.sh"
    }
  ]
}
