MCPcopy
hub / github.com/coder/mux / commitChanges

Function commitChanges

tests/ipc/workspace/create.test.ts:112–116  ·  view source on GitHub ↗

* Commit changes in git repo

(repoPath: string, message: string)

Source from the content-addressed store, hash-verified

110 * Commit changes in git repo
111 */
112async function commitChanges(repoPath: string, message: string): Promise<void> {
113 await execAsync(`git add -A && git commit -m "${message}"`, {
114 cwd: repoPath,
115 });
116}
117
118/**
119 * Create workspace and handle cleanup on test failure

Callers 1

create.test.tsFile · 0.85

Calls 1

execAsyncFunction · 0.85

Tested by

no test coverage detected