mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
feat: Add --attribute-commit-message-committer and pass to Repo
This commit is contained in:
parent
e3ad45f34e
commit
58d401cb22
2 changed files with 9 additions and 2 deletions
|
@ -358,11 +358,17 @@ def get_parser(default_config_files, git_root):
|
||||||
help="Attribute aider commits in the git committer name (default: True)",
|
help="Attribute aider commits in the git committer name (default: True)",
|
||||||
)
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--attribute-commit-message",
|
"--attribute-commit-message-author",
|
||||||
action=argparse.BooleanOptionalAction,
|
action=argparse.BooleanOptionalAction,
|
||||||
default=False,
|
default=False,
|
||||||
help="Prefix commit messages with 'aider: ' if aider authored the changes (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(
|
group.add_argument(
|
||||||
"--commit",
|
"--commit",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
|
|
|
@ -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(),
|
models=main_model.commit_message_models(),
|
||||||
attribute_author=args.attribute_author,
|
attribute_author=args.attribute_author,
|
||||||
attribute_committer=args.attribute_committer,
|
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,
|
commit_prompt=args.commit_prompt,
|
||||||
subtree_only=args.subtree_only,
|
subtree_only=args.subtree_only,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue