MCPcopy Create free account
hub / github.com/EndBug/version-check / getBasicInfo

Function getBasicInfo

src/main.ts:313–328  ·  view source on GitHub ↗
(commit: LocalCommit | PartialCommitResponse)

Source from the content-addressed store, hash-verified

311}
312
313function getBasicInfo(commit: LocalCommit | PartialCommitResponse) {
314 let message: string, sha: string
315
316 if (isLocalCommit(commit)) {
317 message = commit.message
318 sha = commit.id
319 } else {
320 message = commit.commit.message
321 sha = commit.sha
322 }
323
324 return {
325 message,
326 sha
327 }
328}
329
330async function checkDiff(sha: string, version: string) {
331 try {

Callers 1

checkCommitsFunction · 0.70

Calls 1

isLocalCommitFunction · 0.70

Tested by

no test coverage detected