MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / hasHeadCommit

Function hasHeadCommit

desktop/project-git/git-runner.ts:59–66  ·  view source on GitHub ↗
(projectId: string)

Source from the content-addressed store, hash-verified

57}
58
59export async function hasHeadCommit(projectId: string) {
60 try {
61 await runGit(projectId, ['rev-parse', '--verify', 'HEAD'])
62 return true
63 } catch {
64 return false
65 }
66}
67
68export async function withTemporaryIndex<T>(
69 projectId: string,

Callers 7

getBranchFunction · 0.90
getDiffStatsFunction · 0.90
loadContextOutputsFunction · 0.90
resolveMergeBaseRevisionFunction · 0.90
resolveYesterdayBaselineFunction · 0.90
withTemporaryIndexFunction · 0.85

Calls 1

runGitFunction · 0.85

Tested by

no test coverage detected