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

Method repoRoot

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

Find the repository root by walking up from `dir`.

(options?: GitRepoRootOptions)

Source from the content-addressed store, hash-verified

254 revParse(options: GitRevParseOptions): Promise<string>;
255 /** Find the repository root by walking up from `dir`. */
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). */

Callers 2

repoRootFunction · 0.80
runRevParseFunction · 0.80

Calls

no outgoing calls

Tested by 1

repoRootFunction · 0.64