MCPcopy
hub / github.com/21st-dev/1code / hasUncommittedChanges

Function hasUncommittedChanges

src/main/lib/git/git-factory.ts:208–213  ·  view source on GitHub ↗
(worktreePath: string)

Source from the content-addressed store, hash-verified

206 * Returns true if there are staged, unstaged, or untracked changes.
207 */
208export async function hasUncommittedChanges(worktreePath: string): Promise<boolean> {
209 const git = createGit(worktreePath);
210 const status = await git.status();
211
212 return !status.isClean();
213}
214
215/**
216 * Gets detailed uncommitted changes information.

Callers 1

Calls 1

createGitFunction · 0.85

Tested by

no test coverage detected