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

Function hasUnpushedCommits

source code/utils/git.ts:349–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

347}
348
349export const hasUnpushedCommits = async (): Promise<boolean> => {
350 const { stdout, code } = await execFileNoThrow(
351 gitExe(),
352 ['rev-list', '--count', '@{u}..HEAD'],
353 { preserveOutputOnError: false },
354 )
355 return code === 0 && parseInt(stdout.trim(), 10) > 0
356}
357
358export const getIsClean = async (options?: {
359 ignoreUntracked?: boolean

Callers

nothing calls this directly

Calls 1

execFileNoThrowFunction · 0.85

Tested by

no test coverage detected