MCPcopy
hub / github.com/codeaashu/claude-code / getGitCommitSha

Function getGitCommitSha

src/utils/plugins/pluginVersioning.ts:114–116  ·  view source on GitHub ↗
(dirPath: string)

Source from the content-addressed store, hash-verified

112 * @returns Full commit SHA or null if not a git repo
113 */
114export function getGitCommitSha(dirPath: string): Promise<string | null> {
115 return getHeadForDir(dirPath)
116}
117
118/**
119 * Extract version from a versioned cache path.

Callers 2

calculatePluginVersionFunction · 0.70
cacheAndRegisterPluginFunction · 0.70

Calls 1

getHeadForDirFunction · 0.85

Tested by

no test coverage detected