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

Function gitSymbolicRef

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

Source from the content-addressed store, hash-verified

1321}
1322
1323func gitSymbolicRef(root, ref string) (string, bool) {
1324 cmd := exec.Command("git", "symbolic-ref", "--quiet", "--short", ref)
1325 cmd.Dir = root
1326 out, err := cmd.Output()
1327 if err != nil {
1328 return "", false
1329 }
1330 value := strings.TrimSpace(string(out))
1331 if value == "" {
1332 return "", false
1333 }
1334 return value, true
1335}
1336
1337// stopDaemon stops the watch daemon
1338func stopDaemon(root string) {

Callers 1

resolveHandoffBaseRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected