MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / runGitWithOptions

Function runGitWithOptions

desktop/project-git/git-runner.ts:13–28  ·  view source on GitHub ↗
(
  projectId: string,
  args: string[],
  options: {
    env?: NodeJS.ProcessEnv
    maxBuffer?: number | undefined
    timeout?: number | undefined
  } = {},
)

Source from the content-addressed store, hash-verified

11}
12
13export async function runGitWithOptions(
14 projectId: string,
15 args: string[],
16 options: {
17 env?: NodeJS.ProcessEnv
18 maxBuffer?: number | undefined
19 timeout?: number | undefined
20 } = {},
21) {
22 return execFile('git', args, {
23 cwd: projectId,
24 env: options.env,
25 timeout: options.timeout ?? 3_000,
26 maxBuffer: options.maxBuffer ?? 1024 * 128,
27 })
28}
29
30export function getNonInteractiveGitEnv(baseEnv?: NodeJS.ProcessEnv) {
31 return {

Callers 15

resolveCommitRevisionFunction · 0.90
getProjectCommitEntryFunction · 0.90
listProjectCommitsFunction · 0.90
getStatusSummaryFunction · 0.90
getDiffStatsFunction · 0.90
loadContextOutputsFunction · 0.90
resolveMergeBaseRevisionFunction · 0.90
resolveYesterdayBaselineFunction · 0.90
withStagedWorktreeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected