)]}'
{
  "commit": "c257bd59165e2f55dfa2c97b0ca1e39131513654",
  "tree": "71da1a21f99a19e0d3c99e0b5da7bf53a894d76a",
  "parents": [
    "eea83c010cf431325a05f06cc7c64029538c8495"
  ],
  "author": {
    "name": "Patrick Steinhardt",
    "email": "ps@pks.im",
    "time": "Wed Nov 19 08:50:57 2025 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Tue Nov 25 12:16:00 2025 -0800"
  },
  "message": "http-push: stop setting up `the_repository` for each reference\n\nWhen pushing references via HTTP we call `repo_init_revisions()` in a\nloop for each reference that we\u0027re about to push. As third argument we\npass the result of `setup_git_directory()`, which causes us to\nreinitialize the repository every single time.\n\nThis is an obvious waste of compute, as the repository that we\u0027re\nworking in will never change across any of the initializations. The only\nreason that we do this is to retrieve the directory of the repository.\nFurthermore, this is about to create issues in a subsequent commit,\nwhere reinitializing the repository will cause a `BUG()`.\n\nAddress this by storing the Git directory in a variable instead so that\nwe don\u0027t have to call the function repeatedly.\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": "a1c01e3b9b93a3e2be1311521fc69c2568748cd6",
      "old_mode": 33188,
      "old_path": "http-push.c",
      "new_id": "a48ca2379965677358958b43c03216aa7159dbb2",
      "new_mode": 33188,
      "new_path": "http-push.c"
    }
  ]
}
