)]}'
{
  "commit": "a12382f99488b8cea82f59a310084e43ff84e99b",
  "tree": "8c9d93f79e4ea28c7b5c6bc677365ed6b8dc3b57",
  "parents": [
    "105a22cf692a08604bc294ec2c164528889837b0"
  ],
  "author": {
    "name": "Jeff King",
    "email": "peff@peff.net",
    "time": "Thu Apr 16 16:06:59 2026 -0400"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Apr 16 13:45:53 2026 -0700"
  },
  "message": "MIDX: revert the default version to v1\n\nWe introduced midx version 2 in b2ec8e90c2 (midx: do not require packs\nto be sorted in lexicographic order, 2026-02-24) and now write it by\ndefault. The rationale was that older versions should ignore the v2 midx\nand fall back to using the packs (just like we do for other midx\nerrors). Unfortunately this is not the case, as we have a hard die()\nwhen we see an unknown midx version.\n\nAs a result, writing a midx with Git 2.54-rc2 puts the repository into a\nstate that is unusable with Git 2.53. And this midx write may happen\nbehind the scenes as part of normal operations, like fetch.\n\nLet\u0027s switch back to writing v1 by default to avoid regressing the case\nwhere multiple versions of Git are used on the same repository.\n\nThere is one gotcha, though: the v2 format is required for some new\nfeatures, like midx compaction, and running \"git multi-pack-index\ncompact\" will complain when asked to write a v1 index. The user must set\nmidx.version to \"2\" to make the feature work.\n\nSo instead of always using v1, we\u0027ll base the default on whether the\nrequested feature requires v2. That does mean that running midx\ncompaction will create a repository that can\u0027t be read by older versions\nof Git. But we never do that by default; only people experimenting with\nthe new feature will be affected.\n\nWe have to adjust the test expectation in t5319, since it will now\ngenerate v1 files. And our \"auto-select v2\" is covered by the tests in\nt5335, which continue to check that compaction works without having to\nset midx.version manually (and also explicitly check that asking for v1\nwith compaction reports the problem).\n\nSigned-off-by: Jeff King \u003cpeff@peff.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "612568301412d6944d5886b080fe250370b1ef7a",
      "old_mode": 33188,
      "old_path": "Documentation/git-multi-pack-index.adoc",
      "new_id": "3a5aa227784071994bfeedefaea650613e383c6e",
      "new_mode": 33188,
      "new_path": "Documentation/git-multi-pack-index.adoc"
    },
    {
      "type": "modify",
      "old_id": "0ff2e45aa7abdd8ab1ad349a76c0daf31728606e",
      "old_mode": 33188,
      "old_path": "midx-write.c",
      "new_id": "a25cab75abad11155d58b8178acd081e63fd4aac",
      "new_mode": 33188,
      "new_path": "midx-write.c"
    },
    {
      "type": "modify",
      "old_id": "58e0b685b105f5391a688b20df0982ef1556e4a8",
      "old_mode": 33261,
      "old_path": "t/t5319-multi-pack-index.sh",
      "new_id": "fa0d4046f753b839bdb1f584834c92d326b7025a",
      "new_mode": 33261,
      "new_path": "t/t5319-multi-pack-index.sh"
    }
  ]
}
