MCPcopy Create free account
hub / github.com/ResearAI/DeepScientist / _commit_files

Function _commit_files

src/deepscientist/gitops/diff.py:760–763  ·  view source on GitHub ↗
(repo: Path, *, sha: str)

Source from the content-addressed store, hash-verified

758
759
760def _commit_files(repo: Path, *, sha: str) -> list[dict[str, Any]]:
761 status_lines = _git_stdout(repo, ["show", "--find-renames", "--name-status", "--format=", sha]).splitlines()
762 numstat_lines = _git_stdout(repo, ["show", "--find-renames", "--numstat", "--format=", sha]).splitlines()
763 return _files_from_status_numstat(status_lines, numstat_lines)
764
765
766def _files_from_status_numstat(status_lines: list[str], numstat_lines: list[str]) -> list[dict[str, Any]]:

Callers 1

commit_detailFunction · 0.85

Calls 2

_git_stdoutFunction · 0.85

Tested by

no test coverage detected