)]}'
{
  "commit": "b948c10c8b312fa54862449bc5160bc474187595",
  "tree": "d07aad7cd7e12320ef1f0dfb6bd737d69df7c0c5",
  "parents": [
    "ea54cda7c2446eb6cf840dd9e0b677f330f336ec"
  ],
  "author": {
    "name": "Patrick Steinhardt",
    "email": "ps@pks.im",
    "time": "Fri Oct 23 14:50:24 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Oct 23 09:58:33 2026 -0700"
  },
  "message": "rerere: get rid of global rerere cache state\n\nThe rerere cache state is tracked via a global variable. On the one hand\nthis ties it to one specific repository. On the other hand it has the\nconsequence that the cache may be leaking state across multiple calls\ninto the rerere subsystem.\n\nRefactor the subsystem to instead pass around the rerere cache state\nexplicitly and make callers responsible for setting it up and then\nclearing it again.\n\nFor now, all callers are updated to do so ad-hoc. This of course means\nthat state that we could carry over across multiple calls would have to\nbe set up multiple times. But that doesn\u0027t really matter much right now\nanyway, as the number of times we call those functions is bounded.\n\nNote that `rerere_gc_needed()` is the only caller where we explicitly\ndon\u0027t set up the rerere cache state. This is intentional and matches the\nprevious status quo, where we didn\u0027t honor \"rerere.enabled\", either. The\nfunction only needs access to `struct rerere_cache::dirs` anyway though,\nso it\u0027s fine to partially initialize it, only.\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": "e900e302c37a579ba0e9f01afeb742c1e14f43a7",
      "old_mode": 33188,
      "old_path": "builtin/rerere.c",
      "new_id": "2c17f02f56daae4b65f6ceb06e47272984faadb1",
      "new_mode": 33188,
      "new_path": "builtin/rerere.c"
    },
    {
      "type": "modify",
      "old_id": "23bcb8bc316c25c30d30385d721262823239c658",
      "old_mode": 33188,
      "old_path": "rerere.c",
      "new_id": "e089761208590bf9bfcfbdc0e53f8c48a8b5e1fc",
      "new_mode": 33188,
      "new_path": "rerere.c"
    },
    {
      "type": "modify",
      "old_id": "570667d866d6890eeeba3eb447f6bf931f4593aa",
      "old_mode": 33188,
      "old_path": "rerere.h",
      "new_id": "d3cbd10e13f65c9acb8cd38abc2db9462116e7ea",
      "new_mode": 33188,
      "new_path": "rerere.h"
    }
  ]
}
