feat: add commit_prompt parameter to Coder.__init__ and pass it to GitRepo

The commit_prompt parameter is added to the Coder.__init__ method and passed to the GitRepo initialization. This allows users to provide a custom commit prompt when using the Coder class.
This commit is contained in:
Paul Gauthier (aider) 2024-07-31 09:48:54 -03:00
parent 1275171b90
commit f85a9c1195

View file

@ -220,6 +220,7 @@ class Coder:
aider_commit_hashes=None,
map_mul_no_files=8,
verify_ssl=True,
commit_prompt=None,
):
if not fnames:
fnames = []
@ -285,6 +286,7 @@ class Coder:
attribute_author=attribute_author,
attribute_committer=attribute_committer,
attribute_commit_message=attribute_commit_message,
commit_prompt=commit_prompt,
)
self.root = self.repo.root
except FileNotFoundError: