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

Function runGit

test/e2e/utils.ts:67–73  ·  view source on GitHub ↗
(
  args: string[],
  cwd: string
)

Source from the content-addressed store, hash-verified

65};
66
67export const runGit = async (
68 args: string[],
69 cwd: string
70): Promise<{ stdout: string; stderr: string }> => {
71 const { stdout = '', stderr = '' } = await fsExecFile('git', args, { cwd });
72 return { stdout, stderr };
73};
74
75export const configureGitUser = async (gitDir: string): Promise<void> => {
76 await runGit(['config', 'user.email', 'test@example.com'], gitDir);

Callers 9

configureGitUserFunction · 0.85
prepareEnvironmentFunction · 0.85
prepareRepoFunction · 0.85
getHeadCommitSubjectFunction · 0.85
getHeadCommitMessageFunction · 0.85
getHeadCommitFilesFunction · 0.85
getShortGitStatusFunction · 0.85
getCurrentBranchNameFunction · 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…