MCPcopy Index your code
hub / github.com/go-git/go-git / CheckAndSetReference

Method CheckAndSetReference

storage/filesystem/reference.go:17–19  ·  view source on GitHub ↗
(ref, old *plumbing.Reference)

Source from the content-addressed store, hash-verified

15}
16
17func (r *ReferenceStorage) CheckAndSetReference(ref, old *plumbing.Reference) error {
18 return r.dir.SetRef(ref, old)
19}
20
21func (r *ReferenceStorage) Reference(n plumbing.ReferenceName) (*plumbing.Reference, error) {
22 return r.dir.Ref(n)

Callers

nothing calls this directly

Calls 1

SetRefMethod · 0.80

Tested by

no test coverage detected