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

Function getIsHeadOnRemote

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

Source from the content-addressed store, hash-verified

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

Callers 1

getGitStateFunction · 0.85

Calls 1

execFileNoThrowFunction · 0.85

Tested by

no test coverage detected