Function
getFullDiff
(
repoPath: string,
commitSha: string,
parentSha: string,
)
Source from the content-addressed store, hash-verified
| 88 | } |
| 89 | |
| 90 | function getFullDiff( |
| 91 | repoPath: string, |
| 92 | commitSha: string, |
| 93 | parentSha: string, |
| 94 | ): string { |
| 95 | return execSync(`git diff ${parentSha} ${commitSha}`, { |
| 96 | cwd: repoPath, |
| 97 | encoding: 'utf-8', |
| 98 | }) |
| 99 | } |
| 100 | |
| 101 | function getCommitMessage(repoPath: string, commitSha: string): string { |
| 102 | return execSync(`git log --format=%B -n 1 ${commitSha}`, { |
Tested by
no test coverage detected