MCPcopy Create free account
hub / github.com/Noumena-Network/code / getIsClean

Function getIsClean

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

Source from the content-addressed store, hash-verified

369}
370
371export const getIsClean = async (options?: {
372 ignoreUntracked?: boolean
373}): Promise<boolean> => {
374 const args = ['--no-optional-locks', 'status', '--porcelain']
375 if (options?.ignoreUntracked) {
376 args.push('-uno')
377 }
378 const { stdout } = await execFileNoThrow(gitExe(), args, {
379 preserveOutputOnError: false,
380 })
381 return stdout.trim().length === 0
382}
383
384export const getChangedFiles = async (): Promise<string[]> => {
385 const { stdout } = await execFileNoThrow(

Callers 3

getGitStateFunction · 0.85
validateGitStateFunction · 0.85
checkIsGitCleanFunction · 0.85

Calls 1

execFileNoThrowFunction · 0.70

Tested by

no test coverage detected