MCPcopy Create free account
hub / github.com/SethGammon/Citadel / currentBranchHead

Function currentBranchHead

scripts/stack-plan.js:135–140  ·  view source on GitHub ↗
(projectRoot, branch, options = {})

Source from the content-addressed store, hash-verified

133}
134
135function currentBranchHead(projectRoot, branch, options = {}) {
136 if (!branch) return null;
137 if (options.resolveBranchHead) return options.resolveBranchHead(branch);
138 return resolveGitRef(projectRoot, `refs/remotes/origin/${branch}`)
139 || resolveGitRef(projectRoot, `refs/heads/${branch}`);
140}
141
142function annotateCurrentHeads(projectRoot, reports, options = {}) {
143 return reports.map((report) => ({

Callers 1

annotateCurrentHeadsFunction · 0.85

Calls 1

resolveGitRefFunction · 0.85

Tested by

no test coverage detected