MCPcopy Index your code
hub / github.com/git-bug/git-bug / ReadTree

Method ReadTree

repository/repo.go:158–158  ·  view source on GitHub ↗

ReadTree will return the list of entries in a Git tree The given hash could be from either a commit or a tree Returns ErrNotFound if not found.

(hash Hash)

Source from the content-addressed store, hash-verified

156 // The given hash could be from either a commit or a tree
157 // Returns ErrNotFound if not found.
158 ReadTree(hash Hash) ([]TreeEntry, error)
159
160 // StoreCommit will store a Git commit with the given Git tree
161 StoreCommit(treeHash Hash, parents ...Hash) (Hash, error)

Callers 5

RepoDataTestFunction · 0.65
readFunction · 0.65
TestOperationPackFilesFunction · 0.65
readOperationPackFunction · 0.65
readOperationPackClockFunction · 0.65

Implementers 2

mockRepoDatarepository/mock_repo.go
GoGitReporepository/gogit.go

Calls

no outgoing calls

Tested by 1

TestOperationPackFilesFunction · 0.52