MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / appendRepoFile

Function appendRepoFile

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

Source from the content-addressed store, hash-verified

175};
176
177export const appendRepoFile = (
178 gitDir: string,
179 relativePath: string,
180 content: string
181): void => {
182 const filePath = path.resolve(gitDir, relativePath);
183 mkdirSync(path.dirname(filePath), { recursive: true });
184 appendFileSync(filePath, content);
185};
186
187export const writeGlobalConfig = (homeDir: string, lines: string[]): string => {
188 const configPath = path.resolve(homeDir, '.opencommit');

Callers 1

oneFile.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…