)]}'
{
  "commit": "c3764d15e61ab622628b94fec204bc2acfb8aee2",
  "tree": "6406249ad43f7ef24631d0a48a61f70a407de5db",
  "parents": [
    "7e34d8174dcda3435d1404c9a30bef46afe6c13e"
  ],
  "author": {
    "name": "Thomas Bachem",
    "email": "mail@thomasbachem.com",
    "time": "Fri Oct 23 13:19:01 2026 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Fri Oct 23 10:47:35 2026 -0700"
  },
  "message": "hook: make hook.\u003cevent\u003e.enabled cover the hookdir hook\n\nhook.\u003cevent\u003e.enabled, added by dcfb5af67e (hook: add\nhook.\u003cevent\u003e.enabled switch, 2026-04-10), skips only the hooks\ndefined in the configuration when set to false. With\nhook.pre-commit.enabled\u003dfalse, \"git commit\" still runs\n.git/hooks/pre-commit, and \"git hook list\" shows that hook without\nthe \"event-disabled\" mark.\n\nThat was the intent, but the documentation says \"no hooks fire for\nthat event\", which reads as covering the hookdir hook too. No other\nsetting turns off the hookdir hook of a single event either:\ncore.hooksPath\u003d/dev/null turns off the hookdir hooks of all events.\nMake the switch cover the hookdir hook as well, and say so in the\ndocumentation. This changes behavior for anyone who set the switch\nand relied on the hookdir hook still running.\n\nThe test for hook.\u003cevent\u003e.enabled\u003dfalse looks only at the standard\noutput, but \"git hook run\" sends hook output to the standard error,\nso the test passes even when a disabled hook runs. Add a hookdir hook\nto it and check the standard error as well.\n\nAssisted-by: Claude Fable 5.1\nSigned-off-by: Thomas Bachem \u003cmail@thomasbachem.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "083dc60a1325f28a73325d1f080f79733343de7a",
      "old_mode": 33188,
      "old_path": "Documentation/config/hook.adoc",
      "new_id": "332657e70f2f0b7d7d3720418587ce811cbf08b9",
      "new_mode": 33188,
      "new_path": "Documentation/config/hook.adoc"
    },
    {
      "type": "modify",
      "old_id": "cceeb3586e5daf6a16ee3073bb85e11b96b9e233",
      "old_mode": 33188,
      "old_path": "builtin/hook.c",
      "new_id": "1ea698ecc20094a1f45825493ff9d9df542efae4",
      "new_mode": 33188,
      "new_path": "builtin/hook.c"
    },
    {
      "type": "modify",
      "old_id": "d10eef4763c679654daf2577c8b598dc13f619ff",
      "old_mode": 33188,
      "old_path": "hook.c",
      "new_id": "5e756cb353033efdf0aeb580e21a5f2733d6b618",
      "new_mode": 33188,
      "new_path": "hook.c"
    },
    {
      "type": "modify",
      "old_id": "27bb1aeb2ef4659c8fde79d21077518cc9d7a00d",
      "old_mode": 33188,
      "old_path": "hook.h",
      "new_id": "6af24cb331ba093b807395a57aa54ae473d22134",
      "new_mode": 33188,
      "new_path": "hook.h"
    },
    {
      "type": "modify",
      "old_id": "7d4b2982b4a6f766bd1e87c19c935ea4f37648cb",
      "old_mode": 33261,
      "old_path": "t/t1800-hook.sh",
      "new_id": "45b99a7f048fd57d129bdf372633a8589e8a3731",
      "new_mode": 33261,
      "new_path": "t/t1800-hook.sh"
    }
  ]
}
