mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
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:
parent
1275171b90
commit
f85a9c1195
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue