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:
2026-10-08 23:09:10 +02:00
parent e67c882a08
commit 737d58ad9f
4 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ class RunScores:
def co_changed(log: str) -> dict[str, int]:
"""For each file, how many other files changed in a commit with it, commits of more than LARGEST_CHANGESET files left out; log is `git log --format=format:@@ --name-only`."""
"""For each file, how many other files changed in a commit with it, commits of more than LARGEST_CHANGESET files left out; log is `git log --format=tformat:@@ --name-only`."""
partners: dict[str, set[str]] = collections.defaultdict(set)
for commit in log.split("@@\n"):
files = set(filter(None, commit.split("\n")))