From 58d401cb225dc1fc5f10434322c49c51ed6d560d Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 10 Aug 2024 11:09:28 -0700 Subject: [PATCH] feat: Add --attribute-commit-message-committer and pass to Repo --- aider/args.py | 8 +++++++- aider/main.py | 3 ++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/aider/args.py b/aider/args.py index 8b0b2fa0e..4c6c53348 100644 --- a/aider/args.py +++ b/aider/args.py @@ -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", diff --git a/aider/main.py b/aider/main.py index dcee07b27..33994dc39 100644 --- a/aider/main.py +++ b/aider/main.py @@ -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, )