)]}'
{
  "commit": "f17757487b2d212f86edaaf02306972e1a555bbd",
  "tree": "d01b14df1ba94965d03f73ebd94d7f5672248513",
  "parents": [
    "f07263fd9fcb6b03f1e1db041269e2d5b85ccff8"
  ],
  "author": {
    "name": "Taylor Blau",
    "email": "me@ttaylorr.com",
    "time": "Wed Oct 15 18:29:10 2025 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Oct 16 10:08:56 2025 -0700"
  },
  "message": "builtin/repack.c: inline packs within `write_midx_included_packs()`\n\nTo write a MIDX at the end of a repack operation, \u0027git repack\u0027 presently\ncomputes the set of packs to write into the MIDX, before invoking\n`write_midx_included_packs()` with a `string_list` containing those\npacks.\n\nThe logic for computing which packs are supposed to appear in the\nresulting MIDX is within `midx_included_packs()`, where it is aware of\ndetails like which cruft pack(s) were written/combined, if/how we did a\ngeometric repack, etc.\n\nComputing this list ourselves before providing it to the sole function\nto make use of that list `write_midx_included_packs()` is somewhat\nawkward. In the future, repack will learn how to write incremental\nMIDXs, which will use a very different pack selection routine.\n\nInstead of doing something like:\n\n    struct string_list included_packs \u003d STRING_LIST_INIT_DUP;\n    if (incremental) {\n        midx_incremental_included_packs(\u0026included_packs, ...):\n        write_midx_incremental_included_packs(\u0026included_packs, ...);\n    } else {\n        midx_included_packs(\u0026included_packs, ...):\n        write_midx_included_packs(\u0026included_packs, ...);\n    }\n\nin the future, let\u0027s have each function that writes a MIDX be\nresponsible for itself computing the list of included packs. Inline the\ndeclaration and initialization of `included_packs` into the\n`write_midx_included_packs()` function itself, and repeat that pattern\nin the future when we introduce new ways to write MIDXs.\n\nSigned-off-by: Taylor Blau \u003cme@ttaylorr.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "a518a2b2f394cb47f4eb00d552c7f7a3cf0f37b6",
      "old_mode": 33188,
      "old_path": "builtin/repack.c",
      "new_id": "fad10be42ac5cb5a24af21c96b6e4b4904b2ac60",
      "new_mode": 33188,
      "new_path": "builtin/repack.c"
    }
  ]
}
