chore: Change default git commit verify flag to False

This commit is contained in:
Paul Gauthier (aider) 2025-03-20 15:08:44 -07:00
parent 593de47438
commit fe795cc2d5
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -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