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

Function annotateCurrentHeads

scripts/stack-plan.js:142–147  ·  view source on GitHub ↗
(projectRoot, reports, options = {})

Source from the content-addressed store, hash-verified

140}
141
142function annotateCurrentHeads(projectRoot, reports, options = {}) {
143 return reports.map((report) => ({
144 ...report,
145 currentHead: currentBranchHead(projectRoot, report.branch, options),
146 }));
147}
148
149function orderReports(projectRoot, reports, options = {}) {
150 const isAncestor = options.isAncestor || ((ancestor, descendant) => defaultIsAncestor(projectRoot, ancestor, descendant));

Callers 1

assessStackFunction · 0.85

Calls 1

currentBranchHeadFunction · 0.85

Tested by

no test coverage detected