MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / readHead

Function readHead

scripts/check-generated-artifact-diff.cjs:53–57  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

51}
52
53function readHead(file) {
54 const result = spawnSync('git', ['show', `HEAD:${file}`], { encoding: 'utf8' });
55 if (result.status !== 0) return null;
56 return result.stdout;
57}
58
59const realDiffs = [];
60for (const file of files) {

Calls

no outgoing calls

Tested by

no test coverage detected