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

Function hasUnpushedCommits

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

execFileNoThrowFunction · 0.70

Tested by

no test coverage detected