MCPcopy
hub / github.com/xintaofei/codeg / gitShowFile

Function gitShowFile

src/lib/api.ts:1601–1611  ·  view source on GitHub ↗
(
  path: string,
  file: string,
  refName?: string
)

Source from the content-addressed store, hash-verified

1599}
1600
1601export async function gitShowFile(
1602 path: string,
1603 file: string,
1604 refName?: string
1605): Promise<string> {
1606 return getTransport().call("git_show_file", {
1607 path,
1608 file,
1609 refName: refName ?? null,
1610 })
1611}
1612
1613export async function gitIsTracked(
1614 path: string,

Callers 4

CommitWorkspaceFunction · 0.90
handleSelectFileFunction · 0.90
handleSelectFileFunction · 0.90
WorkspaceProviderFunction · 0.90

Calls 2

getTransportFunction · 0.90
callMethod · 0.65

Tested by

no test coverage detected