MCPcopy
hub / github.com/opactorai/Claudable / commitAll

Function commitAll

lib/services/git.ts:149–161  ·  view source on GitHub ↗
(repoPath: string, message: string)

Source from the content-addressed store, hash-verified

147}
148
149export function commitAll(repoPath: string, message: string) {
150 try {
151 untrackIgnoredPaths(repoPath);
152 runGit(['add', '-A'], repoPath);
153 runGit(['commit', '-m', message], repoPath);
154 return true;
155 } catch (error) {
156 if (error instanceof GitError && error.output && error.output.includes('nothing to commit')) {
157 return false;
158 }
159 throw error;
160 }
161}
162
163export function pushToRemote(repoPath: string, remoteName = 'origin', branch = 'main') {
164 try {

Callers 2

connectProjectToGitHubFunction · 0.90
pushProjectToGitHubFunction · 0.90

Calls 2

untrackIgnoredPathsFunction · 0.85
runGitFunction · 0.85

Tested by

no test coverage detected