MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / readFileAtRef

Function readFileAtRef

packages/bumpy/src/core/git.ts:155–157  ·  view source on GitHub ↗
(rootDir: string, ref: string, path: string)

Source from the content-addressed store, hash-verified

153 * Returns null if the file does not exist at that ref.
154 */
155export function readFileAtRef(rootDir: string, ref: string, path: string): string | null {
156 return tryRunArgs(['git', 'show', `${ref}:${path}`], { cwd: rootDir });
157}
158
159/** Get commits on the current branch since it diverged from baseBranch */
160export function getBranchCommits(

Callers 2

getChangedCatalogEntriesFunction · 0.90

Calls 1

tryRunArgsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…