)]}'
{
  "commit": "c05b8b2883468606920ec63f057bf07cccd1f614",
  "tree": "ec161a236ffb0d64e1a5bef56327a496ba184ecd",
  "parents": [
    "12ab14dca318beb58c0473c7b29d6978de09bba0"
  ],
  "author": {
    "name": "Masaya Suzuki",
    "email": "draftcode@gmail.com",
    "time": "Mon Oct 31 13:06:35 2022 -0700"
  },
  "committer": {
    "name": "Masaya Suzuki",
    "email": "draftcode@gmail.com",
    "time": "Sun Feb 05 01:48:59 2023 +0000"
  },
  "message": "Detect empty messages with a cutoff\n\nGit includes additional information when \"git commit --cleanup\u003dscissors\"\nor \"git commit --verbose\" is used. This includes a marker line that Git\ndetects and strips out the messages after that.\n\nWhen this option is used, the commit-msg hook couldn\u0027t detect if the\ncommit message is empty properly. This change teaches the hook about the\ncutoff line.\n\nThis shouldn\u0027t interfere with the existing behavior. With\nI633e5db4643851376422f839d969094043abb5c5, this \"git stripspace\"\ninvocation is used purely for the message emptiness check. The actual\nend result should still contain the scissors as tested in\ncommit-msg_test.sh.\n\nNote that this part is prone to the pipefail problem. However, this\nscript\u0027s shebang is /bin/sh, not Bash, and it\u0027s not as trivial as\nsetting \u0027set -o pipefail\u0027. Since other parts of the script already use a\npipe, this issue would be orthogonal to this change.\n\nChange-Id: Idd4d6e5cd00e7114e0cac26f8f508602fdce39c0\nRelease-Notes: The commit-msg hook respects the scissors marker for the empty message detection.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2c256ffc2681e98d20e1c41e3a41c0c06b227458",
      "old_mode": 33261,
      "old_path": "resources/com/google/gerrit/server/commit-msg_test.sh",
      "new_id": "0cc3da0368ba8b9f950f5554e0bf1a4c163fc35c",
      "new_mode": 33261,
      "new_path": "resources/com/google/gerrit/server/commit-msg_test.sh"
    },
    {
      "type": "modify",
      "old_id": "d9fd1f1e8f9350de3733563c6053778cc8a5be53",
      "old_mode": 33261,
      "old_path": "resources/com/google/gerrit/server/tools/root/hooks/commit-msg",
      "new_id": "0154d43cafabfb87a2b737a35cdb631affbf472d",
      "new_mode": 33261,
      "new_path": "resources/com/google/gerrit/server/tools/root/hooks/commit-msg"
    }
  ]
}
