)]}'
{
  "commit": "3d884b0b5656fe012002edd6bb8f36a125e6c17e",
  "tree": "fa5201a0046b1ed3bed3273e437a71b7a2524d56",
  "parents": [
    "452ad8db6d9155d6c7305d6045d29c49a7cc9c7c"
  ],
  "author": {
    "name": "Patrick Steinhardt",
    "email": "ps@pks.im",
    "time": "Thu Jun 04 09:46:27 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Jun 05 21:49:38 2026 +0900"
  },
  "message": "setup: deduplicate logic to apply repository format\n\nAfter having discovered the repository format we then apply it to the\nrepository so that it knows to use the proper repository extensions. The\nlogic to apply the format is duplicated across three callsites, which\nmakes it rather painfull to add new extensions.\n\nIntroduce a new function `apply_repository_format()` that takes a repo\nand applies a given format to it and adapt all callsites to use it.\nThis function is also the new caller of `verify_repository_format()` so\nthat we can ensure that we never apply an invalid repository format.\nThe verification we have in `read_and_verify_repository_format()` is\nthus redundant now and dropped.\n\nRename `read_and_verify_repository_format()` accordingly. While at it,\nalso rename `check_repository_format()` to clarify that it doesn\u0027t only\n_check_ the format, but that it also applies it.\n\nSigned-off-by: Patrick Steinhardt \u003cps@pks.im\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "db57b8308b94e71bad934c0ce1b8b7f000cea04b",
      "old_mode": 33188,
      "old_path": "repository.c",
      "new_id": "58a13f7c4f5d85ab65630f33dfd84c078eb5fdf3",
      "new_mode": 33188,
      "new_path": "repository.c"
    },
    {
      "type": "modify",
      "old_id": "252b4431172265a330cf4b97135e08a34c9e446a",
      "old_mode": 33188,
      "old_path": "setup.c",
      "new_id": "c5015923f159a9fdf497b28b657f9dad15e66a1f",
      "new_mode": 33188,
      "new_path": "setup.c"
    },
    {
      "type": "modify",
      "old_id": "9409326fe47c7098c8d4ca2d3b3d717b6432bc31",
      "old_mode": 33188,
      "old_path": "setup.h",
      "new_id": "efbb82fdbfc80bea143aadb731909cc79a24ba06",
      "new_mode": 33188,
      "new_path": "setup.h"
    }
  ]
}
