MCPcopy
hub / github.com/di-sukharev/opencommit / writeRepoFile

Function writeRepoFile

test/e2e/utils.ts:167–175  ·  view source on GitHub ↗
(
  gitDir: string,
  relativePath: string,
  content: string
)

Source from the content-addressed store, hash-verified

165};
166
167export const writeRepoFile = (
168 gitDir: string,
169 relativePath: string,
170 content: string
171): void => {
172 const filePath = path.resolve(gitDir, relativePath);
173 mkdirSync(path.dirname(filePath), { recursive: true });
174 writeFileSync(filePath, content);
175};
176
177export const appendRepoFile = (
178 gitDir: string,

Callers 2

prepareRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…