MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / headSha

Method headSha

src/agent/git-sandbox.ts:130–133  ·  view source on GitHub ↗
(signal?: AbortSignal)

Source from the content-addressed store, hash-verified

128 }
129
130 private async headSha(signal?: AbortSignal): Promise<string | null> {
131 const r = await git(['rev-parse', 'HEAD'], { cwd: this.cwd, signal });
132 return (r.exitCode === 0) ? r.stdout.trim() : null;
133 }
134
135 /**
136 * Enter the sandbox. Returns true if isolation is now active, false if it

Callers 2

beginMethod · 0.95
checkpointMethod · 0.95

Calls 1

gitFunction · 0.50

Tested by

no test coverage detected