MCPcopy Create free account
hub / github.com/NomicFoundation/hardhat / getAddingCommit

Function getAddingCommit

scripts/lib/changesets.ts:64–73  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

62}
63
64async function getAddingCommit(filePath: string) {
65 try {
66 const { stdout } = await exec(
67 `git log --diff-filter=A --follow --format=%h -- "${filePath}"`,
68 );
69 return stdout.trim() || null;
70 } catch {
71 return null;
72 }
73}

Callers 1

readAllNewChangsetsFunction · 0.85

Calls 1

execFunction · 0.85

Tested by

no test coverage detected