MCPcopy Create free account
hub / github.com/brimdata/super / readHead

Function readHead

cli/poolflags/state.go:23–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func readHead() (string, error) {
24 b, err := os.ReadFile(headPath())
25 if err != nil {
26 return "", err
27 }
28 return strings.TrimSpace(string(b)), nil
29}
30
31func WriteHead(pool, branch string) error {
32 head := fmt.Sprintf("%s@%s\n", pool, branch)

Callers 1

SetFlagsMethod · 0.85

Calls 1

headPathFunction · 0.85

Tested by

no test coverage detected