From fe795cc2d53bb33d2bc7649a9a382dd4cd0a3f62 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Thu, 20 Mar 2025 15:08:44 -0700 Subject: [PATCH] chore: Change default git commit verify flag to False --- aider/args.py | 4 ++-- aider/website/docs/git.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/args.py b/aider/args.py index fb89062c6..bdcf1ac92 100644 --- a/aider/args.py +++ b/aider/args.py @@ -439,8 +439,8 @@ def get_parser(default_config_files, git_root): group.add_argument( "--git-commit-verify", action=argparse.BooleanOptionalAction, - default=True, - help="Enable/disable git pre-commit hooks with --no-verify (default: True)", + default=False, + help="Enable/disable git pre-commit hooks with --no-verify (default: False)", ) group.add_argument( "--commit", diff --git a/aider/website/docs/git.md b/aider/website/docs/git.md index 245ee595e..00ee5a272 100644 --- a/aider/website/docs/git.md +++ b/aider/website/docs/git.md @@ -40,7 +40,7 @@ While it is not recommended, you can disable aider's use of git in a few ways: - `--no-auto-commits` will stop aider from git committing each of its changes. - `--no-dirty-commits` will stop aider from committing dirty files before applying its edits. - `--no-git` will completely stop aider from using git on your files. You should ensure you are keeping sensible backups of the files you are working with. - - `--no-git-commit-verify` will add the `--no-verify` flag to git commits, which skips pre-commit hooks. By default, aider runs pre-commit hooks (`--git-commit-verify=True`). + - `--git-commit-verify` will run pre-commit hooks when making git commits. By default, aider skips pre-commit hooks by using the `--no-verify` flag (`--git-commit-verify=False`). ## Commit messages