Give each review pass at most two rounds per chunk, with no third round and no ask for one
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user