mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
feat: add commit_before_message variable to Coder class and set it in init_before_message
This commit is contained in:
parent
f5b5a3511b
commit
423b6e1ad1
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,7 @@ class Coder:
|
|||
test_outcome = None
|
||||
multi_response_content = ""
|
||||
partial_response_content = ""
|
||||
commit_before_message = None
|
||||
|
||||
@classmethod
|
||||
def create(
|
||||
|
@ -668,6 +669,10 @@ class Coder:
|
|||
self.lint_outcome = None
|
||||
self.test_outcome = None
|
||||
self.edit_outcome = None
|
||||
if self.repo:
|
||||
self.commit_before_message = self.repo.repo.head.commit.hexsha
|
||||
else:
|
||||
self.commit_before_message = None
|
||||
|
||||
def run(self, with_message=None):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue