MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getIsClean

Function getIsClean

src/utils/git.ts:356–367  ·  view source on GitHub ↗
(options?: {
  ignoreUntracked?: boolean
})

Source from the content-addressed store, hash-verified

354}
355
356export const getIsClean = async (options?: {
357 ignoreUntracked?: boolean
358}): Promise<boolean> => {
359 const args = ['--no-optional-locks', 'status', '--porcelain']
360 if (options?.ignoreUntracked) {
361 args.push('-uno')
362 }
363 const { stdout } = await execFileNoThrow(gitExe(), args, {
364 preserveOutputOnError: false,
365 })
366 return stdout.trim().length === 0
367}
368
369export const getChangedFiles = async (): Promise<string[]> => {
370 const { stdout } = await execFileNoThrow(

Callers 3

getGitStateFunction · 0.85
validateGitStateFunction · 0.85
checkIsGitCleanFunction · 0.85

Calls 2

execFileNoThrowFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected