MCPcopy Index your code
hub / github.com/dmno-dev/bumpy / hasUncommittedChanges

Function hasUncommittedChanges

packages/bumpy/src/core/git.ts:107–110  ·  view source on GitHub ↗
(opts?: { cwd?: string })

Source from the content-addressed store, hash-verified

105
106/** Check if there are uncommitted changes */
107export function hasUncommittedChanges(opts?: { cwd?: string }): boolean {
108 const result = tryRunArgs(['git', 'status', '--porcelain'], opts);
109 return result !== null && result.length > 0;
110}
111
112/** Get the current branch name */
113export function getCurrentBranch(opts?: { cwd?: string }): string | null {

Callers 2

git.test.tsFile · 0.90
publishCommandFunction · 0.90

Calls 1

tryRunArgsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…