)]}'
{
  "commit": "a8b75e8eda21f1551e5cbed4c67708afba26911e",
  "tree": "e0f76f091fc4fae575e96e71698a7b9740c1d4e4",
  "parents": [
    "f62947adf0f7b3d84b2b2f915e92dc4f3355efaa"
  ],
  "author": {
    "name": "Patrick Steinhardt",
    "email": "ps@pks.im",
    "time": "Fri Oct 23 14:50:20 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Oct 23 09:58:33 2026 -0700"
  },
  "message": "rerere: remove redundant calls to `repo_config()`\n\nWhen setting up the rerere cache we eventually end up calling\n`repo_config()`. This call is redundant though, as all callers of\n`setup_rerere()` already called `repo_config()` beforehand.\n\nNext to being redundant though it also feels like a layering violation.\nThe intent of that function is to set up state for the rerere cache, but\nwe potentially end up modifying other global state, too. This is usually\nfine, but it is surprising to say the very least. If a caller for\nexample were to call `repo_config()` and then modifies the parsed config\nmanually then those modifications would be lost when calling\n`setup_rerere()`.\n\nDespite the layering violation though it will also create problems with\na subsequent commit, where we are about to cache whether or not the\nrerere cache is enabled. As part of that change we would stop calling\n`repo_config()` when the rerere cache is disabled, but continue to call\nit when it\u0027s enabled. So the above layering violation is essentially\nbecoming even worse, because we may or may not clobber config values.\n\nDrop the call, as well as another redundant call in `rerere_gc()`.\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": "c568bd5e8992c128f0f5123f129c9b946c0d6659",
      "old_mode": 33188,
      "old_path": "rerere.c",
      "new_id": "56b6ef547b049b795d6980089f82b6a03d68f3ec",
      "new_mode": 33188,
      "new_path": "rerere.c"
    }
  ]
}
