MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / updateVersionInfo

Function updateVersionInfo

Support/SingleFileLibs/javascript/app.js:555–565  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

553 }
554
555 async function updateVersionInfo() {
556 try {
557 const sha = await getCommitShaForRef(state.currentRef);
558 state.latestCommitSha = sha;
559 const shortSha = sha.slice(0, 7);
560 const tag = state.currentRefType === 'tag' ? state.currentRef : (state.latestReleaseTag || 'unknown');
561 versionInfo.textContent = `Version: ${tag} (${shortSha})`;
562 } catch {
563 versionInfo.textContent = 'Version: unknown';
564 }
565 }
566
567 async function refreshBriefsForRef(ref) {
568 state.libraryBriefByName = {};

Callers 2

onRefChangedFunction · 0.85
app.jsFile · 0.85

Calls 1

getCommitShaForRefFunction · 0.85

Tested by

no test coverage detected