MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / execGit

Function execGit

projects/electron/src/modules/code/git.ts:416–418  ·  view source on GitHub ↗

* Execute git command with error handling * Uses centralized subprocess runner to respect user-configured env vars (e.g., custom PATH)

(args: string[], cwd?: string)

Source from the content-addressed store, hash-verified

414 * Uses centralized subprocess runner to respect user-configured env vars (e.g., custom PATH)
415 */
416async function execGit(args: string[], cwd?: string): Promise<{ stdout: string; stderr: string; success: boolean }> {
417 return execCommand("git", args, { cwd, maxBuffer: 50 * 1024 * 1024 })
418}
419
420function parseNameStatusOutput(stdout: string): ChangedFileInfo[] {
421 const files: ChangedFileInfo[] = []

Callers 15

resolveGitInfoFunction · 0.85
handleIsGitDirectoryFunction · 0.85
handleWorkTreeDiffPatchFunction · 0.85
handleGetMergeBaseFunction · 0.85
collectGitSummaryDataFunction · 0.85
handleGetGitStatusFunction · 0.85
handleListFilesFunction · 0.85
handleDeleteWorkTreeFunction · 0.85
handleIsBranchMergedFunction · 0.85
handleDeleteBranchFunction · 0.85
handleListWorkTreesFunction · 0.85

Calls 1

execCommandFunction · 0.90

Tested by

no test coverage detected