MCPcopy
hub / github.com/git-lfs/git-lfs / NewPointer

Function NewPointer

lfs/pointer.go:57–59  ·  view source on GitHub ↗
(oid string, size int64, exts []*PointerExtension)

Source from the content-addressed store, hash-verified

55func (p ByPriority) Less(i, j int) bool { return p[i].Priority < p[j].Priority }
56
57func NewPointer(oid string, size int64, exts []*PointerExtension) *Pointer {
58 return &Pointer{latest, oid, size, oidType, exts, true}
59}
60
61func NewPointerExtension(name string, priority int, oid string) *PointerExtension {
62 return &PointerExtension{name, priority, oid, oidType}

Callers 9

pointerCommandFunction · 0.92
pruneFunction · 0.92
CleanMethod · 0.85
TestEncodeFunction · 0.85
TestEncodeEmptyFunction · 0.85
TestEncodeExtensionsFunction · 0.85
EmptyPointerFunction · 0.85
decodeKVFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestEncodeFunction · 0.68
TestEncodeEmptyFunction · 0.68
TestEncodeExtensionsFunction · 0.68