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

Function getVersionString

Support/SingleFileLibs/javascript/app.js:298–303  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

296 async listTree() { return tree.tree; },
297 async readFile(r, path) { return await fetchFileCached(r, path); },
298 async getVersionString(r) {
299 const sha = await getCommitShaForRef(r);
300 const shortSha = sha.slice(0,7);
301 const tag = state.latestReleaseTag || r;
302 return `${tag} (${shortSha})`;
303 },
304 };
305 return await buildSingleLibraryHeaderUsingContext(libraryName, ctx);
306 }

Callers

nothing calls this directly

Calls 1

getCommitShaForRefFunction · 0.85

Tested by

no test coverage detected