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

Function gitToolsFromFs

packages/shell/src/git/provider.ts:145–153  ·  view source on GitHub ↗
(
  filesystem: FileSystem,
  options?: GitToolsOptions
)

Source from the content-addressed store, hash-verified

143
144/** Create a git ToolProvider from a raw FileSystem. */
145export function gitToolsFromFs(
146 filesystem: FileSystem,
147 options?: GitToolsOptions
148): ToolProvider {
149 return createGitToolProvider(
150 createGit(filesystem, options?.dir ?? "/"),
151 options?.token
152 );
153}

Callers

nothing calls this directly

Calls 2

createGitFunction · 0.90
createGitToolProviderFunction · 0.85

Tested by

no test coverage detected