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

Method currentBranch

packages/computer/src/git/index.ts:258–258  ·  view source on GitHub ↗

Current branch name, or undefined on detached HEAD.

(options?: GitCurrentBranchOptions)

Source from the content-addressed store, hash-verified

256 repoRoot(options?: GitRepoRootOptions): Promise<string>;
257 /** Current branch name, or undefined on detached HEAD. */
258 currentBranch(options?: GitCurrentBranchOptions): Promise<string | undefined>;
259 /** List files in the index (or at a given ref). */
260 lsFiles(options?: GitLsFilesOptions): Promise<string[]>;
261 /** List one level of a tree (or sub-tree). */

Callers 7

refs.test.tsFile · 0.65
currentBranchFunction · 0.65
worktree.test.tsFile · 0.65
clone.test.tsFile · 0.65
runRevParseFunction · 0.65
runSymbolicRefFunction · 0.65
runBranchFunction · 0.65

Calls

no outgoing calls

Tested by 1

currentBranchFunction · 0.52