MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getFullDiff

Function getFullDiff

evals/buffbench/gen-evals.ts:90–99  ·  view source on GitHub ↗
(
  repoPath: string,
  commitSha: string,
  parentSha: string,
)

Source from the content-addressed store, hash-verified

88}
89
90function 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
101function getCommitMessage(repoPath: string, commitSha: string): string {
102 return execSync(`git log --format=%B -n 1 ${commitSha}`, {

Callers 1

processCommitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected