MCPcopy
hub / github.com/antfu/skills / getGitSha

Function getGitSha

scripts/cli.ts:25–27  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

23}
24
25function getGitSha(dir: string): string | null {
26 return execSafe('git rev-parse HEAD', dir)
27}
28
29function submoduleExists(path: string): boolean {
30 const gitmodules = join(root, '.gitmodules')

Callers 1

syncSubmodulesFunction · 0.85

Calls 1

execSafeFunction · 0.85

Tested by

no test coverage detected