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

Function unpackRepository

plumbing/object/commitgraph/commitnode_test.go:25–31  ·  view source on GitHub ↗
(f *fixtures.Fixture)

Source from the content-addressed store, hash-verified

23var _ = Suite(&CommitNodeSuite{})
24
25func unpackRepository(f *fixtures.Fixture) *filesystem.Storage {
26 storer := filesystem.NewStorage(f.DotGit(), cache.NewObjectLRUDefault())
27 p := f.Packfile()
28 defer p.Close()
29 packfile.UpdateObjectStorage(storer, p)
30 return storer
31}
32
33func testWalker(c *C, nodeIndex CommitNodeIndex) {
34 head, err := nodeIndex.Get(plumbing.NewHash("b9d69064b190e7aedccf84731ca1d917871f8a1c"))

Callers 4

TestCommitNodeIterMethod · 0.85
TestObjectGraphMethod · 0.85
TestCommitGraphMethod · 0.85
TestMixedGraphMethod · 0.85

Calls 4

NewStorageFunction · 0.92
NewObjectLRUDefaultFunction · 0.92
UpdateObjectStorageFunction · 0.92
CloseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…