From f85a9c1195017c4a0b74c0fff7ff13682131ff5f Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 31 Jul 2024 09:48:54 -0300 Subject: [PATCH] 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. --- aider/coders/base_coder.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 715b49a3d..88270f5ee 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -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: