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

Struct Reference

plumbing/reference.go:223–228  ·  view source on GitHub ↗

Reference is a representation of git reference

Source from the content-addressed store, hash-verified

221
222// Reference is a representation of git reference
223type Reference struct {
224 t ReferenceType
225 n ReferenceName
226 h Hash
227 target ReferenceName
228}
229
230// NewReferenceFromStrings creates a reference from name and target as string,
231// the resulting reference can be a SymbolicReference or a HashReference base

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected