Answer architecture round 4: count only what a target assigns, end each log entry with a newline, and give the larv-review hint only for the default history
This commit is contained in:
@@ -68,7 +68,7 @@ def read_history(given: pathlib.Path | None) -> tuple[str, pathlib.Path, str] |
|
||||
if isinstance(found, Failure):
|
||||
return found
|
||||
history = given or pathlib.Path(found.strip(), "docs", "comprehension-history.md")
|
||||
if not history.exists():
|
||||
if not given and not history.exists():
|
||||
return Failure(f"no comprehension history at {history}; larv-review writes one at a project's first paired ruling or scoring run")
|
||||
try:
|
||||
return found.strip(), history, history.read_text(encoding="utf-8")
|
||||
@@ -117,7 +117,7 @@ def run_scores(run: ScoringRun, top: str) -> tuple[RunScores | None, list[str]]
|
||||
unparsed.append(found.reason)
|
||||
else:
|
||||
units += found
|
||||
log = git(["-c", "core.quotePath=false", "log", "--no-merges", "--format=format:@@", "--name-only", run.commit], top)
|
||||
log = git(["-c", "core.quotePath=false", "log", "--no-merges", "--format=tformat:@@", "--name-only", run.commit], top)
|
||||
if isinstance(log, Failure):
|
||||
return log
|
||||
places, dropped = resolved(run.places, tracked)
|
||||
|
||||
Reference in New Issue
Block a user