The --no-auto-commits flag implies --no-dirty-commits

This commit is contained in:
Paul Gauthier 2023-06-05 22:13:20 -07:00
parent 4727e5c616
commit c44cc12b42
2 changed files with 6 additions and 1 deletions

View file

@ -63,8 +63,13 @@ class Coder:
self.done_messages = []
self.io = io
if not auto_commits:
dirty_commits = False
self.auto_commits = auto_commits
self.dirty_commits = dirty_commits
self.dry_run = dry_run
self.pretty = pretty

View file

@ -130,7 +130,7 @@ def main(args=None, input=None, output=None):
"--no-auto-commits",
action="store_false",
dest="auto_commits",
help="Disable auto commit of GPT changes",
help="Disable auto commit of GPT changes (implies --no-dirty-commits)",
)
parser.add_argument(
"--dirty-commits",