MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / saveCommit

Function saveCommit

src/services/git/index.ts:50–57  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

48*/
49
50export async function saveCommit(message: string): Promise<never | void> {
51 const { stdout, stderr } = await exec({ command: `git commit -am '${message}'` })
52 if (stderr) {
53 logger(`Error: ${stderr}`)
54 throw new Error('Error saving progress to Git')
55 }
56 logger(`Commit saved: ${stdout}`)
57}
58
59export async function clear(): Promise<Error | void> {
60 try {

Callers

nothing calls this directly

Calls 2

execFunction · 0.90
loggerFunction · 0.50

Tested by

no test coverage detected