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

Function newObject

plumbing/cache/object_test.go:174–179  ·  view source on GitHub ↗
(hash string, size FileSize)

Source from the content-addressed store, hash-verified

172}
173
174func newObject(hash string, size FileSize) plumbing.EncodedObject {
175 return &dummyObject{
176 hash: plumbing.NewHash(hash),
177 size: size,
178 }
179}
180
181func (d *dummyObject) Hash() plumbing.Hash { return d.hash }
182func (*dummyObject) Type() plumbing.ObjectType { return plumbing.InvalidObject }

Callers 4

SetUpTestMethod · 0.70
TestConcurrentAccessMethod · 0.70

Calls 1

NewHashFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…