MCPcopy Index your code
hub / github.com/Waishnav/devspace / git

Function git

src/git.ts:19–31  ·  view source on GitHub ↗
(
  cwd: string,
  args: string[],
  options: { env?: NodeJS.ProcessEnv; maxBuffer?: number } = {},
)

Source from the content-addressed store, hash-verified

17}
18
19export async function git(
20 cwd: string,
21 args: string[],
22 options: { env?: NodeJS.ProcessEnv; maxBuffer?: number } = {},
23): Promise<GitCommandResult> {
24 const { stdout, stderr } = await execFileAsync("git", args, {
25 cwd,
26 env: options.env ? { ...process.env, ...options.env } : process.env,
27 maxBuffer: options.maxBuffer ?? 10 * 1024 * 1024,
28 });
29
30 return { stdout, stderr };
31}
32
33export async function getGitEligibility(cwd: string): Promise<GitEligibility> {
34 try {

Callers 4

initializeWorkspaceFunction · 0.70
reviewChangesFunction · 0.70
getGitEligibilityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected