Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

fix(coverage): use the renamed diff arguments when reading a change for the project delta (#2667)

Raghav Chamadiyaaeea75c22b39
diff --git a/packages/core/src/repowise/core/analysis/changed_lines.py b/packages/core/src/repowise/core/analysis/changed_lines.py
index 68378d661..76ae99352 100644
--- a/packages/core/src/repowise/core/analysis/changed_lines.py
+++ b/packages/core/src/repowise/core/analysis/changed_lines.py
@@ -338,7 +338,7 @@ def change_diff(
reads, whatever the user's ``diff.renames``.
"""
diffs = parse_unified_diff(
- _diff(repo_path, ["diff", "--unified=0", "-M", *DIFF_PREFIXES, base, head])
+ _diff(repo_path, ["diff", "--unified=0", "-M", *DIFF_ARGS, base, head])
)
fields = _diff(repo_path, ["diff", "--name-status", "-z", "-M", base, head]).split("\0")
renames: dict[str, str] = {}