MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / gitOpts

Function gitOpts

src/workspaces/git-service.ts:31–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29// fires), so callers check exitCode. The old execFile `timeout` option becomes
30// an AbortSignal — a slow git is killed and surfaces as a rejection/non-zero.
31function gitOpts(): IGitStringExecutionOptions {
32 return { maxBuffer: MAX_BUFFER, signal: AbortSignal.timeout(GIT_TIMEOUT_MS) };
33}
34
35/**
36 * Wrap `git log --pretty=...` so the panel can render hash + subject + time.

Callers 2

gitLogFunction · 0.85
gitStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected