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

Function WriteHead

cli/poolflags/state.go:31–38  ·  view source on GitHub ↗
(pool, branch string)

Source from the content-addressed store, hash-verified

29}
30
31func WriteHead(pool, branch string) error {
32 head := fmt.Sprintf("%s@%s\n", pool, branch)
33 err := os.WriteFile(headPath(), []byte(head), 0644)
34 if err != nil {
35 err = fmt.Errorf("%q: failed to write HEAD: %w", headFile, err)
36 }
37 return err
38}

Callers 2

RunMethod · 0.92
RunMethod · 0.92

Calls 1

headPathFunction · 0.85

Tested by

no test coverage detected