MCPcopy Create free account
hub / github.com/Drakkar-Software/OctoBot / unified_diff

Function unified_diff

tools/extended_linter/layers/git_scope.py:70–81  ·  view source on GitHub ↗
(
    repo_root: pathlib.Path,
    merge_base_sha: str,
)

Source from the content-addressed store, hash-verified

68
69
70def unified_diff(
71 repo_root: pathlib.Path,
72 merge_base_sha: str,
73) -> str:
74 diff_result = subprocess.run(
75 ["git", "diff", f"{merge_base_sha}...HEAD"],
76 cwd=repo_root,
77 capture_output=True,
78 text=True,
79 check=True,
80 )
81 return diff_result.stdout

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected