MCPcopy
hub / github.com/go-git/go-git / ReferenceStorage

Struct ReferenceStorage

storage/transactional/reference.go:10–18  ·  view source on GitHub ↗

ReferenceStorage implements the storer.ReferenceStorage for the transactional package.

Source from the content-addressed store, hash-verified

8
9// ReferenceStorage implements the storer.ReferenceStorage for the transactional package.
10type ReferenceStorage struct {
11 storer.ReferenceStorer
12 temporal storer.ReferenceStorer
13
14 // deleted, remaining references at this maps are going to be deleted when
15 // commit is requested, the entries are added when RemoveReference is called
16 // and deleted if SetReference is called.
17 deleted map[plumbing.ReferenceName]struct{}
18}
19
20// NewReferenceStorage returns a new ReferenceStorer based on a base storer and
21// a temporal storer.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected