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:
@@ -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")))
|
||||
|
||||
Reference in New Issue
Block a user