)]}'
{
  "commit": "cb034c020aba54360e7c19faf82021399bf131e7",
  "tree": "5b2c6c1ef7dee393249c58f90f0052fee4bce45e",
  "parents": [
    "388517c14ce62e1c52b091af862bbaf28dbabb7a"
  ],
  "author": {
    "name": "Christian Couder",
    "email": "christian.couder@gmail.com",
    "time": "Mon Nov 17 05:34:49 2025 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Sun Nov 16 20:56:35 2025 -0800"
  },
  "message": "commit: refactor verify_commit_buffer()\n\nIn a following commit, we are going to check commit signatures, but we\nwon\u0027t have a commit yet, only a commit buffer, and we are going to\ndiscard this commit buffer if the signature is invalid. So it would be\nwasteful to create a commit that we might discard, just to be able to\ncheck a commit signature.\n\nIt would be simpler instead to be able to check commit signatures\nusing only a commit buffer instead of a commit.\n\nTo be able to do that, let\u0027s extract some code from the\ncheck_commit_signature() function into a new verify_commit_buffer()\nfunction, and then let\u0027s make check_commit_signature() call\nverify_commit_buffer().\n\nNote that this doesn\u0027t fundamentally change how\ncheck_commit_signature() works. It used to call parse_signed_commit()\nwhich calls repo_get_commit_buffer(), parse_buffer_signed_by_header()\nand repo_unuse_commit_buffer(). Now these 3 functions are called\ndirectly by verify_commit_buffer().\n\nSigned-off-by: Christian Couder \u003cchriscool@tuxfamily.org\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "16d91b2bfcf291b876e1edb5ea54520edad21c0c",
      "old_mode": 33188,
      "old_path": "commit.c",
      "new_id": "709c9eed58a790194e0f7e6555e84844c6e67a26",
      "new_mode": 33188,
      "new_path": "commit.c"
    },
    {
      "type": "modify",
      "old_id": "1d6e0c7518b3bb7d1f478b157a509f658515e52d",
      "old_mode": 33188,
      "old_path": "commit.h",
      "new_id": "5406dd266327d4e3c3141c05c099d1bee9e0b999",
      "new_mode": 33188,
      "new_path": "commit.h"
    }
  ]
}
