)]}'
{
  "commit": "b4dedbc0615bddbad6a5bd18345d9da766d95dfa",
  "tree": "f7495d32e9df54f9b71a280287efa0179e30e30c",
  "parents": [
    "004f98f28f5342dcd5f17caa70cd7f0a597db6f4"
  ],
  "author": {
    "name": "Patrick Steinhardt",
    "email": "ps@pks.im",
    "time": "Fri Sep 11 07:51:44 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Sep 11 08:46:09 2026 -0700"
  },
  "message": "cache-tree: drop `the_repository` in `cache_tree_fully_valid()`\n\nThe function `cache_tree_fully_valid()` verifies whether the cache tree\nowned by the index is valid or not. As part of that, the function checks\nwhether the objects referenced by the cache all exist. But because the\nfunction has no repository available, it is using the object database of\n`the_repository` instead.\n\nWe could of course adapt callers to pass in a repository as parameter\nexplicitly to get rid of this implicit dependency on global state. But\nall of them pass the cache tree owned by a `struct index_state`, and\nthat structure already has a reference to its owning repository.\n\nSo instead, adapt the function to accept a `struct index_state`, which\nensures that callers will implicitly always pass the correct repository.\nAdapt callers accordingly.\n\nSuggested-by: Junio C Hamano \u003cgitster@pobox.com\u003e\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": "55e3a89a852712c69e109886459f517dca0ef6b1",
      "old_mode": 33188,
      "old_path": "builtin/checkout.c",
      "new_id": "505d3f7bf33cdf03d6d50b9d00d9093cfea4f57a",
      "new_mode": 33188,
      "new_path": "builtin/checkout.c"
    },
    {
      "type": "modify",
      "old_id": "28f617450345064db0cb0be233aa2773c0cba2ba",
      "old_mode": 33188,
      "old_path": "builtin/commit.c",
      "new_id": "840b6b4083b945f2710adf6bec58747a459ea498",
      "new_mode": 33188,
      "new_path": "builtin/commit.c"
    },
    {
      "type": "modify",
      "old_id": "a220372a4201974ec2fc93836c6b3828bbfa4824",
      "old_mode": 33188,
      "old_path": "cache-tree.c",
      "new_id": "6103b3fcb30000d867a866465ec960077f16cfe7",
      "new_mode": 33188,
      "new_path": "cache-tree.c"
    },
    {
      "type": "modify",
      "old_id": "f8bddae5235f5474410e4e80cb0bfa9408353bfc",
      "old_mode": 33188,
      "old_path": "cache-tree.h",
      "new_id": "4b3f60d6db481e176827ac93d58c6afa15c1e086",
      "new_mode": 33188,
      "new_path": "cache-tree.h"
    },
    {
      "type": "modify",
      "old_id": "65afd100d98e618e248eb09e33ee1c44704f0fa1",
      "old_mode": 33188,
      "old_path": "sequencer.c",
      "new_id": "11a95c031b35565d10f9318732e6439edbe3aa72",
      "new_mode": 33188,
      "new_path": "sequencer.c"
    },
    {
      "type": "modify",
      "old_id": "c1fa231a89fc07c5bff0f7b3fb709ae6e20f33ca",
      "old_mode": 33188,
      "old_path": "sparse-index.c",
      "new_id": "3d77dadae56d08697a153fc78718191959efe6ea",
      "new_mode": 33188,
      "new_path": "sparse-index.c"
    },
    {
      "type": "modify",
      "old_id": "154d6d40a15934aedff596f01e29091b5d32a0aa",
      "old_mode": 33188,
      "old_path": "unpack-trees.c",
      "new_id": "f6bb1e6d2bf541d0e95fab418b4b452dd261b5cb",
      "new_mode": 33188,
      "new_path": "unpack-trees.c"
    }
  ]
}
