mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
The --no-auto-commits flag implies --no-dirty-commits
This commit is contained in:
parent
4727e5c616
commit
c44cc12b42
2 changed files with 6 additions and 1 deletions
|
@ -63,8 +63,13 @@ class Coder:
|
||||||
self.done_messages = []
|
self.done_messages = []
|
||||||
|
|
||||||
self.io = io
|
self.io = io
|
||||||
|
|
||||||
|
if not auto_commits:
|
||||||
|
dirty_commits = False
|
||||||
|
|
||||||
self.auto_commits = auto_commits
|
self.auto_commits = auto_commits
|
||||||
self.dirty_commits = dirty_commits
|
self.dirty_commits = dirty_commits
|
||||||
|
|
||||||
self.dry_run = dry_run
|
self.dry_run = dry_run
|
||||||
self.pretty = pretty
|
self.pretty = pretty
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ def main(args=None, input=None, output=None):
|
||||||
"--no-auto-commits",
|
"--no-auto-commits",
|
||||||
action="store_false",
|
action="store_false",
|
||||||
dest="auto_commits",
|
dest="auto_commits",
|
||||||
help="Disable auto commit of GPT changes",
|
help="Disable auto commit of GPT changes (implies --no-dirty-commits)",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--dirty-commits",
|
"--dirty-commits",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue