)]}'
{
  "commit": "84675fa2717e08b39bf810eb9a439068ac915dfb",
  "tree": "dca887317d4699b844a946f8d725c1888c336fcc",
  "parents": [
    "4483be36f4477252f785df0c8c40677df8c18828"
  ],
  "author": {
    "name": "Karthik Nayak",
    "email": "karthik.188@gmail.com",
    "time": "Mon Dec 16 17:44:31 2024 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Dec 16 09:45:34 2024 -0800"
  },
  "message": "refs: introduce the `ref_transaction_update_reflog` function\n\nIntroduce a new function `ref_transaction_update_reflog`, for clients to\nadd a reflog update to a transaction. While the existing function\n`ref_transaction_update` also allows clients to add a reflog entry, this\nfunction does a few things more, It:\n  - Enforces that only a reflog entry is added and does not update the\n  ref itself.\n  - Allows the users to also provide the committer information. This\n  means clients can add reflog entries with custom committer\n  information.\n\nThe `transaction_refname_valid()` function also modifies the error\nmessage selectively based on the type of the update. This change also\naffects reflog updates which go through `ref_transaction_update()`.\n\nA follow up commit will utilize this function to add reflog support to\n`git refs migrate`.\n\nSigned-off-by: Karthik Nayak \u003ckarthik.188@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "782bf1090af65196263a3c35ed18d878bb4f2967",
      "old_mode": 33188,
      "old_path": "refs.c",
      "new_id": "8b3882cff17e5e3b0376f75654e32f81a23e5cb2",
      "new_mode": 33188,
      "new_path": "refs.c"
    },
    {
      "type": "modify",
      "old_id": "a5bedf48cf6de91005a7e8d0bf58ca98350397a6",
      "old_mode": 33188,
      "old_path": "refs.h",
      "new_id": "b0dfc65ed2e59c4b66967840339f81e7746a96d3",
      "new_mode": 33188,
      "new_path": "refs.h"
    },
    {
      "type": "modify",
      "old_id": "255fed8354cae982f785b1b85340e2a1eeecf2a6",
      "old_mode": 33188,
      "old_path": "refs/files-backend.c",
      "new_id": "c11213f52065bcf2fa7612df8f9500692ee2d02c",
      "new_mode": 33188,
      "new_path": "refs/files-backend.c"
    }
  ]
}
