)]}'
{
  "commit": "f8bdf3127ab7df8a8f3039f41889b35eefe029a3",
  "tree": "be8a4800d6630b6d0f3de2d4f17fa5bac8b7ffc8",
  "parents": [
    "9aaba579932781c74f67d6cecddaad59f0daaaef"
  ],
  "author": {
    "name": "Patrick Steinhardt",
    "email": "ps@pks.im",
    "time": "Wed Nov 19 08:50:52 2025 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Nov 19 17:41:03 2025 -0800"
  },
  "message": "odb: refactor `odb_clear()` to `odb_free()`\n\nThe function `odb_clear()` releases all resources allocated to an object\ndatabase and ensures that all fields become zero\u0027d out. Despite its\nnaming though it doesn\u0027t really clear the object database so that it\nbecomes ready for reuse afterwards again -- the caller would first have\nto reinitialize it, and that contradicts the terminology of \"clearing\"\nas we have defined it in our coding guidelines.\n\nThere isn\u0027t really only a reason to have \"clearing\" semantics, either.\nThere\u0027s only a single caller of `odb_clear()`, and that caller also ends\nup freeing the object database structure itself.\n\nRefactor the function to have \"freeing\" semantics instead, so that the\nstructure itself is also freed, which allows us to drop some useless\nboilerplate to zero out the structure\u0027s members.\n\nThis refactoring reveals that we\u0027re trying to close the commit graph\nmultiple times: once directly via `free_commit_graph()`, and once via\n`odb_close()`. Drop the former call.\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": "bcefa5cede60b524852c19a8b1f9ab03382dab88",
      "old_mode": 33188,
      "old_path": "odb.c",
      "new_id": "29cf6496c5e50aff2e67b0cc81d08b97ae0b613f",
      "new_mode": 33188,
      "new_path": "odb.c"
    },
    {
      "type": "modify",
      "old_id": "71b4897c82f3a87146422b4eff92ab61c1455b53",
      "old_mode": 33188,
      "old_path": "odb.h",
      "new_id": "77b313b784cad38303ee4aecc0f2f6f1d3a9d7b7",
      "new_mode": 33188,
      "new_path": "odb.h"
    },
    {
      "type": "modify",
      "old_id": "6aaa7ba00869bf6aa0450f3fbdf27590f7439228",
      "old_mode": 33188,
      "old_path": "repository.c",
      "new_id": "3c8b3813b00af00c30d1954ffd656744cfe5cfbb",
      "new_mode": 33188,
      "new_path": "repository.c"
    }
  ]
}
