Give each review pass at most two rounds per chunk, with no third round and no ask for one

This commit is contained in:
2026-10-28 17:37:09 +01:00
parent 47a40757c3
commit 0254e427f2
17 changed files with 116 additions and 79 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ class Commit:
directory: str
messages: list[str]
from_file: bool
amends: bool
def commits(simples: list[Simple], home: str) -> list[Commit]:
@@ -18,7 +19,7 @@ def commits(simples: list[Simple], home: str) -> list[Commit]:
for simple in simples:
invoked = git_subcommand(simple.words, simple.directory, home)
if invoked and invoked[0] == "commit":
found.append(Commit(invoked[2], *commit_message(invoked[1])))
found.append(Commit(invoked[2], *commit_message(invoked[1]), "--amend" in invoked[1]))
return found