MCPcopy Create free account
hub / github.com/cloudflare/computer / currentBranch

Function currentBranch

packages/computer/src/git/index.ts:493–499  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

491 return repoRootWith({ ...options, fs: await fs() });
492 },
493 async currentBranch(options = {}) {
494 return currentBranchWith({
495 ...options,
496 fs: await fs(),
497 git: await loadGit<IsomorphicGitReadsClient>(),
498 });
499 },
500 async lsFiles(options = {}) {
501 return lsFilesWith({
502 ...options,

Callers

nothing calls this directly

Calls 2

currentBranchWithFunction · 0.85
fsFunction · 0.70

Tested by

no test coverage detected