MCPcopy Create free account
hub / github.com/JordanCoin/codemap / gitRefExists

Function gitRefExists

cmd/hooks.go:1317–1321  ·  view source on GitHub ↗
(root, ref string)

Source from the content-addressed store, hash-verified

1315}
1316
1317func gitRefExists(root, ref string) bool {
1318 cmd := exec.Command("git", "rev-parse", "--verify", "--quiet", ref)
1319 cmd.Dir = root
1320 return cmd.Run() == nil
1321}
1322
1323func gitSymbolicRef(root, ref string) (string, bool) {
1324 cmd := exec.Command("git", "symbolic-ref", "--quiet", "--short", ref)

Callers 1

resolveHandoffBaseRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected