)]}'
{
  "commit": "89be7d2774f81f3d8663999975a6ab64d46bf42e",
  "tree": "6d60f04f67240a1d1aff9039e64c347893610188",
  "parents": [
    "e2067b49ecaef9b7f51a17ce251f9207f72ef52d"
  ],
  "author": {
    "name": "Karthik Nayak",
    "email": "karthik.188@gmail.com",
    "time": "Fri Feb 21 11:04:23 2025 +0100"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Feb 21 09:55:02 2025 -0800"
  },
  "message": "builtin/refs: add \u0027--no-reflog\u0027 flag to drop reflogs\n\nThe \"git refs migrate\" subcommand converts the backend used for ref\nstorage. It always migrates reflog data as well as refs. Introduce an\noption to exclude reflogs from migration, allowing them to be discarded\nwhen they are unnecessary.\n\nThis is particularly useful in server-side repositories, where reflogs\nare typically not expected. However, some repositories may still have\nthem due to historical reasons, such as bugs, misconfigurations, or\nadministrative decisions to enable reflogs for debugging. In such\nrepositories, it would be optimal to drop reflogs during the migration.\n\nTo address this, introduce the \u0027--no-reflog\u0027 flag, which prevents reflog\nmigration. When this flag is used, reflogs from the original reference\nbackend are migrated. Since only the new reference backend remains in\nthe repository, all previous reflogs are permanently discarded.\n\nHelped-by: Junio C Hamano \u003cgitster@pobox.com\u003e\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": "9829984b0a4c4f54ec7f9b6c6c7072f62b1d198d",
      "old_mode": 33188,
      "old_path": "Documentation/git-refs.txt",
      "new_id": "733ada7d51715d42a9ab48c3119d2756f2b26d01",
      "new_mode": 33188,
      "new_path": "Documentation/git-refs.txt"
    },
    {
      "type": "modify",
      "old_id": "a29f19583474518ee0942ea53c39cbdf9661c5e2",
      "old_mode": 33188,
      "old_path": "builtin/refs.c",
      "new_id": "c459507d514b37322e965207893a3335b886f824",
      "new_mode": 33188,
      "new_path": "builtin/refs.c"
    },
    {
      "type": "modify",
      "old_id": "f4094a326a9f88f979654b668cc9c3d27d83cb5d",
      "old_mode": 33188,
      "old_path": "refs.c",
      "new_id": "5e8f5c06fa68d16c93ee11edd9742995eea994b6",
      "new_mode": 33188,
      "new_path": "refs.c"
    },
    {
      "type": "modify",
      "old_id": "a0cdd99250e8286b55808b697b0a94afac5d8319",
      "old_mode": 33188,
      "old_path": "refs.h",
      "new_id": "ccee8fc6705e6e93a1c6234e7395180f8dfd815b",
      "new_mode": 33188,
      "new_path": "refs.h"
    },
    {
      "type": "modify",
      "old_id": "a6d9b35a46eb59350aa0d59d982a2fbfaecf1448",
      "old_mode": 33261,
      "old_path": "t/t1460-refs-migrate.sh",
      "new_id": "2ab97e1b7dfa7e9a00004db08d0bcd511b890054",
      "new_mode": 33261,
      "new_path": "t/t1460-refs-migrate.sh"
    }
  ]
}
