wip: Added a check to skip auto commits if auto_commits is False.

This commit is contained in:
Paul Gauthier 2023-05-11 17:09:06 -07:00
parent 0213c4344a
commit ea05c00bd1

View file

@ -261,6 +261,9 @@ class Coder:
if not edited:
return
if not self.auto_commits:
return
res = self.commit(history=self.cur_messages, prefix="aider: ")
if res:
commit_hash, commit_message = res