MCPcopy Create free account
hub / github.com/go-git/go-git / SetReference

Method SetReference

storage/filesystem/reference.go:13–15  ·  view source on GitHub ↗
(ref *plumbing.Reference)

Source from the content-addressed store, hash-verified

11}
12
13func (r *ReferenceStorage) SetReference(ref *plumbing.Reference) error {
14 return r.dir.SetRef(ref, nil)
15}
16
17func (r *ReferenceStorage) CheckAndSetReference(ref, old *plumbing.Reference) error {
18 return r.dir.SetRef(ref, old)

Callers

nothing calls this directly

Calls 1

SetRefMethod · 0.80

Tested by

no test coverage detected