)]}'
{
  "commit": "5c58dbc887a1f3530cb29c995f63675beebb22e9",
  "tree": "1db89b9b9a4ef3f852b228f62c11c813174c2336",
  "parents": [
    "e17bd99281ae01a758d717bdfaa759bbeefb6149"
  ],
  "author": {
    "name": "Adrian Ratiu",
    "email": "adrian.ratiu@collabora.com",
    "time": "Wed Mar 25 21:55:03 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Mar 25 14:00:48 2026 -0700"
  },
  "message": "hook: reject unknown hook names in git-hook(1)\n\nTeach \"git hook run\" and \"git hook list\" to reject hook event names\nthat are not recognized by Git. This helps catch typos such as\n\"prereceive\" when \"pre-receive\" was intended, since in 99% of the\ncases users want known (already-existing) hook names.\n\nThe list of known hooks is derived from the generated hook-list.h\n(built from Documentation/githooks.adoc). This is why the Makefile\nis updated, so builtin/hook.c depends on hook-list.h. In meson the\nheader is already a dependency for all builtins, no change required.\n\nThe \"--allow-unknown-hook-name\" flag can be used to bypass this check.\n\nSuggested-by: Patrick Steinhardt \u003cps@pks.im\u003e\nSigned-off-by: Adrian Ratiu \u003cadrian.ratiu@collabora.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e7d399ae57af54a21fbec2f0a8b3ba14578a0ec6",
      "old_mode": 33188,
      "old_path": "Documentation/git-hook.adoc",
      "new_id": "318c637bd8eba5a57b4019e02025ddb50d17ae10",
      "new_mode": 33188,
      "new_path": "Documentation/git-hook.adoc"
    },
    {
      "type": "modify",
      "old_id": "f3264d0a37cc5067f99f0bf1db8f2f716560dae3",
      "old_mode": 33188,
      "old_path": "Makefile",
      "new_id": "c5a1b549a894a33ff2c81d3333b6ad6b62920112",
      "new_mode": 33188,
      "new_path": "Makefile"
    },
    {
      "type": "modify",
      "old_id": "f671e7f91a033b87f9484a76745190c2410086a9",
      "old_mode": 33188,
      "old_path": "builtin/hook.c",
      "new_id": "c0585587e5e4fafeb377d8815dedf6bd2067b55f",
      "new_mode": 33188,
      "new_path": "builtin/hook.c"
    },
    {
      "type": "modify",
      "old_id": "8c5237449dc416e4a9d8f8d7514fd19be67f5a8f",
      "old_mode": 33261,
      "old_path": "t/t1800-hook.sh",
      "new_id": "96749fc06d722396d43b0e5d358415ff7844315c",
      "new_mode": 33261,
      "new_path": "t/t1800-hook.sh"
    }
  ]
}
