)]}'
{
  "commit": "cb1133022a7b65a291eeb6e06f944ee12df04bb5",
  "tree": "ab649a8ea10613b7d593cda02da721823b0ebabb",
  "parents": [
    "7d43a7afc1a8193a93f534c1b6875630d3b83612"
  ],
  "author": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Sep 30 18:45:44 2025 +0200"
  },
  "committer": {
    "name": "Tom de Vries",
    "email": "tdevries@suse.de",
    "time": "Tue Sep 30 18:45:44 2025 +0200"
  },
  "message": "[pre-commit] Set default_stages to pre-commit\n\nI realized I was seeing the newly added tclint check twice:\n...\n$ touch gdb/testsuite/gdb.base/foo.exp\n$ git add gdb/testsuite/gdb.base/foo.exp\n$ git commit -a -m foo 2\u003e\u00261 | grep tclint\ntclint..................................................................Passed\ntclint..............................................(no files to check)Skipped\n$\n...\n\nThe hook is run once for stage pre-commit, and once for stage commit-msg.\n\nSince the hook doesn\u0027t specify a stage at which it\u0027s supposed to be run, it\ntakes its default from default_stages, which defaults to all stages.\n\nFix this by setting default_stages to pre-commit:\n...\n$ git commit -a -m foo 2\u003e\u00261 | grep tclint\ntclint..................................................................Passed\n$\n...\n\nThe only hook sofar that needs a different stage than pre-commit is\ncodespell-log, and it\u0027s not affected by this change because it has an explicit\n\"stages: [commit-msg]\" setting.\n\nApproved-By: Tom Tromey \u003ctom@tromey.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "8217bad0a0ac716449c66a28d0b5d30ca3a1c044",
      "old_mode": 33188,
      "old_path": ".pre-commit-config.yaml",
      "new_id": "33e3f2b8900f93c295baed80bd1264af087496cd",
      "new_mode": 33188,
      "new_path": ".pre-commit-config.yaml"
    }
  ]
}
