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

Function gitCommit

src/lib/api.ts:1620–1632  ·  view source on GitHub ↗
(
  path: string,
  message: string,
  files: string[],
  folderId?: number | null
)

Source from the content-addressed store, hash-verified

1618}
1619
1620export async function gitCommit(
1621 path: string,
1622 message: string,
1623 files: string[],
1624 folderId?: number | null
1625): Promise<GitCommitResult> {
1626 return getTransport().call("git_commit", {
1627 path,
1628 message,
1629 files,
1630 folderId: folderId ?? null,
1631 })
1632}
1633
1634export async function gitRollbackFile(
1635 path: string,

Callers 1

CommitWorkspaceFunction · 0.90

Calls 2

getTransportFunction · 0.90
callMethod · 0.65

Tested by

no test coverage detected