MCPcopy
hub / github.com/claude-code-best/claude-code / getIsHeadOnRemote

Function getIsHeadOnRemote

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

Source from the content-addressed store, hash-verified

338}
339
340export const getIsHeadOnRemote = async (): Promise<boolean> => {
341 const { code } = await execFileNoThrow(gitExe(), ['rev-parse', '@{u}'], {
342 preserveOutputOnError: false,
343 })
344 return code === 0
345}
346
347export const hasUnpushedCommits = async (): Promise<boolean> => {
348 const { stdout, code } = await execFileNoThrow(

Callers 1

getGitStateFunction · 0.85

Calls 1

execFileNoThrowFunction · 0.70

Tested by

no test coverage detected