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

Function hasUnpushedCommits

src/utils/git.ts:362–369  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

360}
361
362export const hasUnpushedCommits = async (): Promise<boolean> => {
363 const { stdout, code } = await execFileNoThrow(
364 gitExe(),
365 ['rev-list', '--count', '@{u}..HEAD'],
366 { preserveOutputOnError: false },
367 )
368 return code === 0 && parseInt(stdout.trim(), 10) > 0
369}
370
371export const getIsClean = async (options?: {
372 ignoreUntracked?: boolean

Callers

nothing calls this directly

Calls 1

execFileNoThrowFunction · 0.70

Tested by

no test coverage detected