diff --git a/aider/repo.py b/aider/repo.py index 713b463b3..0a755a1ac 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -84,6 +84,9 @@ class GitRepo: else: commit_message = self.get_commit_message(diffs, context) + if aider_edits and self.attribute_commit_message: + commit_message = "aider: " + commit_message + if not commit_message: commit_message = "(no commit message provided)"