mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
feat: add attribute_commit_message_committer param to prepend "aider: " to every commit message
This commit is contained in:
parent
a162f34661
commit
0666b5f971
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,7 @@ class GitRepo:
|
||||||
attribute_author=True,
|
attribute_author=True,
|
||||||
attribute_committer=True,
|
attribute_committer=True,
|
||||||
attribute_commit_message=False,
|
attribute_commit_message=False,
|
||||||
|
attribute_commit_message_committer=False,
|
||||||
commit_prompt=None,
|
commit_prompt=None,
|
||||||
subtree_only=False,
|
subtree_only=False,
|
||||||
):
|
):
|
||||||
|
@ -42,6 +43,7 @@ class GitRepo:
|
||||||
self.attribute_author = attribute_author
|
self.attribute_author = attribute_author
|
||||||
self.attribute_committer = attribute_committer
|
self.attribute_committer = attribute_committer
|
||||||
self.attribute_commit_message = attribute_commit_message
|
self.attribute_commit_message = attribute_commit_message
|
||||||
|
self.attribute_commit_message_committer = attribute_commit_message_committer
|
||||||
self.commit_prompt = commit_prompt
|
self.commit_prompt = commit_prompt
|
||||||
self.subtree_only = subtree_only
|
self.subtree_only = subtree_only
|
||||||
self.ignore_file_cache = {}
|
self.ignore_file_cache = {}
|
||||||
|
@ -100,6 +102,8 @@ class GitRepo:
|
||||||
|
|
||||||
if aider_edits and self.attribute_commit_message:
|
if aider_edits and self.attribute_commit_message:
|
||||||
commit_message = "aider: " + commit_message
|
commit_message = "aider: " + commit_message
|
||||||
|
elif self.attribute_commit_message_committer:
|
||||||
|
commit_message = "aider: " + commit_message
|
||||||
|
|
||||||
if not commit_message:
|
if not commit_message:
|
||||||
commit_message = "(no commit message provided)"
|
commit_message = "(no commit message provided)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue