MCPcopy Create free account
hub / github.com/coderoad/coderoad-vscode / verifyCommitUnique

Function verifyCommitUnique

src/services/hooks/utils/commits.ts:4–11  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

2
3// avoid duplicate commits
4const verifyCommitUnique = async (hash: string): Promise<boolean> => {
5 const message: string | null = await git.getCommitMessage(hash)
6 if (!message) {
7 return false
8 }
9 const exists: boolean = await git.commitsExistsByMessage(message)
10 return exists
11}
12
13export const loadCommits = async (commits: string[] = []): Promise<void> => {
14 if (commits && commits.length) {

Callers 1

loadCommitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected