mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Added an option to prefix commit messages with 'aider: '.
This commit is contained in:
parent
9c214e0faf
commit
ec682fd683
2 changed files with 8 additions and 0 deletions
|
@ -345,6 +345,12 @@ def get_parser(default_config_files, git_root):
|
||||||
default=True,
|
default=True,
|
||||||
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(
|
||||||
|
"--attribute-commit-message",
|
||||||
|
action=argparse.BooleanOptionalAction,
|
||||||
|
default=False,
|
||||||
|
help="Prefix commit messages with 'aider: ' (default: False)",
|
||||||
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--dry-run",
|
"--dry-run",
|
||||||
action=argparse.BooleanOptionalAction,
|
action=argparse.BooleanOptionalAction,
|
||||||
|
|
|
@ -221,6 +221,7 @@ class Coder:
|
||||||
test_cmd=None,
|
test_cmd=None,
|
||||||
attribute_author=True,
|
attribute_author=True,
|
||||||
attribute_committer=True,
|
attribute_committer=True,
|
||||||
|
attribute_commit_message=False,
|
||||||
):
|
):
|
||||||
if not fnames:
|
if not fnames:
|
||||||
fnames = []
|
fnames = []
|
||||||
|
@ -280,6 +281,7 @@ class Coder:
|
||||||
models=main_model.commit_message_models(),
|
models=main_model.commit_message_models(),
|
||||||
attribute_author=attribute_author,
|
attribute_author=attribute_author,
|
||||||
attribute_committer=attribute_committer,
|
attribute_committer=attribute_committer,
|
||||||
|
attribute_commit_message=attribute_commit_message,
|
||||||
)
|
)
|
||||||
self.root = self.repo.root
|
self.root = self.repo.root
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue