)]}'
{
  "commit": "246cebe3205694ce19eceaa795d20f24ba762c49",
  "tree": "ed5b2da3ac8df97bde77536aa1f5329be0c6a62a",
  "parents": [
    "297c09eabb1e8b44230bca86fc7fd344175e0be7"
  ],
  "author": {
    "name": "Karthik Nayak",
    "email": "karthik.188@gmail.com",
    "time": "Mon Dec 16 17:44:33 2024 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Dec 16 09:45:34 2024 -0800"
  },
  "message": "refs: add support for migrating reflogs\n\nThe `git refs migrate` command was introduced in\n25a0023f28 (builtin/refs: new command to migrate ref storage formats,\n2024-06-06) to support migrating from one reference backend to another.\n\nOne limitation of the command was that it didn\u0027t support migrating\nrepositories which contained reflogs. A previous commit, added support\nfor adding reflog updates in ref transactions. Using the added\nfunctionality bake in reflog support for `git refs migrate`.\n\nTo ensure that the order of the reflogs is maintained during the\nmigration, we add the index for each reflog update as we iterate over\nthe reflogs from the old reference backend. This is to ensure that the\norder is maintained in the new backend.\n\nHelped-by: Patrick Steinhardt \u003cps@pks.im\u003e\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": "ce31f93061db5e5d16aca516dd3d15f6527db870",
      "old_mode": 33188,
      "old_path": "Documentation/git-refs.txt",
      "new_id": "9829984b0a4c4f54ec7f9b6c6c7072f62b1d198d",
      "new_mode": 33188,
      "new_path": "Documentation/git-refs.txt"
    },
    {
      "type": "modify",
      "old_id": "8b3882cff17e5e3b0376f75654e32f81a23e5cb2",
      "old_mode": 33188,
      "old_path": "refs.c",
      "new_id": "5d541ddc41aa84905e688c92565aa18fbf55323b",
      "new_mode": 33188,
      "new_path": "refs.c"
    },
    {
      "type": "modify",
      "old_id": "1bfff3a7afd5acc470424dfe7ec3e97d45f5c481",
      "old_mode": 33261,
      "old_path": "t/t1460-refs-migrate.sh",
      "new_id": "f59bc4860f19c4af82dc6f2984bdb69d61fe3ec2",
      "new_mode": 33261,
      "new_path": "t/t1460-refs-migrate.sh"
    }
  ]
}
