feat: Add --git-commit-verify flag to control git hook verification

This commit is contained in:
Paul Gauthier (aider) 2025-03-20 15:06:44 -07:00
parent aca64071c8
commit ac231e43ad
3 changed files with 12 additions and 1 deletions

View file

@ -436,6 +436,12 @@ def get_parser(default_config_files, git_root):
default=False,
help="Prefix all commit messages with 'aider: ' (default: False)",
)
group.add_argument(
"--git-commit-verify",
action=argparse.BooleanOptionalAction,
default=True,
help="Enable/disable git pre-commit hooks with --no-verify (default: True)",
)
group.add_argument(
"--commit",
action="store_true",