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

Function getFileFromCommit

scripts/bump-peers.ts:724–730  ·  view source on GitHub ↗
(ref: string, filePath: string)

Source from the content-addressed store, hash-verified

722}
723
724function getFileFromCommit(ref: string, filePath: string): string | null {
725 try {
726 return git(["show", `${ref}:${filePath}`]);
727 } catch {
728 return null;
729 }
730}
731
732// =============================================================================
733// Config Helpers

Callers 1

revertPeerDependenciesFunction · 0.85

Calls 1

gitFunction · 0.70

Tested by

no test coverage detected