MCPcopy Create free account
hub / github.com/cloudflare/agents / git

Method git

packages/shell/src/tests/agents/git.ts:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 private _git: Git | null = null;
16
17 private git(): Git {
18 if (!this._git) {
19 this._git = createGit(new WorkspaceFileSystem(this.workspace));
20 }
21 return this._git;
22 }
23
24 async init(opts?: { defaultBranch?: string }) {
25 return this.git().init(opts);

Callers 11

initMethod · 0.95
addMethod · 0.95
commitMethod · 0.95
statusMethod · 0.95
logMethod · 0.95
branchMethod · 0.95
checkoutMethod · 0.95
diffMethod · 0.95
rmMethod · 0.95
remoteMethod · 0.95
cloneMethod · 0.95

Calls 1

createGitFunction · 0.90

Tested by

no test coverage detected