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

Function getGitCommitSha

src/utils/plugins/installedPluginsManager.ts:1002–1005  ·  view source on GitHub ↗

* Get the git commit SHA from a git repository directory * Returns undefined if not a git repo or if operation fails

(dirPath: string)

Source from the content-addressed store, hash-verified

1000 * Returns undefined if not a git repo or if operation fails
1001 */
1002async function getGitCommitSha(dirPath: string): Promise<string | undefined> {
1003 const sha = await getHeadForDir(dirPath)
1004 return sha ?? undefined
1005}
1006
1007/**
1008 * Try to read version from plugin manifest

Callers 1

Calls 1

getHeadForDirFunction · 0.85

Tested by

no test coverage detected