MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getIsClean

Function getIsClean

source code/utils/git.ts:358–369  ·  view source on GitHub ↗
(options?: {
  ignoreUntracked?: boolean
})

Source from the content-addressed store, hash-verified

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

Callers 3

getGitStateFunction · 0.85
validateGitStateFunction · 0.85
checkIsGitCleanFunction · 0.85

Calls 1

execFileNoThrowFunction · 0.85

Tested by

no test coverage detected