feat: Add --attribute-commit-message-committer and pass to Repo

This commit is contained in:
Paul Gauthier (aider) 2024-08-10 11:09:28 -07:00
parent e3ad45f34e
commit 58d401cb22
2 changed files with 9 additions and 2 deletions

View file

@ -358,11 +358,17 @@ def get_parser(default_config_files, git_root):
help="Attribute aider commits in the git committer name (default: True)",
)
group.add_argument(
"--attribute-commit-message",
"--attribute-commit-message-author",
action=argparse.BooleanOptionalAction,
default=False,
help="Prefix commit messages with 'aider: ' if aider authored the changes (default: False)",
)
group.add_argument(
"--attribute-commit-message-committer",
action=argparse.BooleanOptionalAction,
default=False,
help="Prefix all commit messages with 'aider: ' (default: False)",
)
group.add_argument(
"--commit",
action="store_true",

View file

@ -481,7 +481,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
models=main_model.commit_message_models(),
attribute_author=args.attribute_author,
attribute_committer=args.attribute_committer,
attribute_commit_message=args.attribute_commit_message,
attribute_commit_message_author=args.attribute_commit_message_author,
attribute_commit_message_committer=args.attribute_commit_message_committer,
commit_prompt=args.commit_prompt,
subtree_only=args.subtree_only,
)