MCPcopy Create free account
hub / github.com/VPSDance/ai-proxy-rules / getFileAtRef

Function getFileAtRef

scripts/diff-summary.ts:83–90  ·  view source on GitHub ↗
(ref: string, relPath: string)

Source from the content-addressed store, hash-verified

81}
82
83async function getFileAtRef(ref: string, relPath: string): Promise<string | null> {
84 try {
85 const { stdout } = await exec("git", ["show", `${ref}:${relPath}`], { maxBuffer: 10 * 1024 * 1024 });
86 return stdout;
87 } catch {
88 return null;
89 }
90}

Callers 1

diffSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected