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

Method commitIndexEntry

worktree_commit.go:220–232  ·  view source on GitHub ↗
(e *index.Entry)

Source from the content-addressed store, hash-verified

218}
219
220func (h *buildTreeHelper) commitIndexEntry(e *index.Entry) error {
221 parts := strings.Split(e.Name, "/")
222
223 var fullpath string
224 for _, part := range parts {
225 parent := fullpath
226 fullpath = path.Join(fullpath, part)
227
228 h.doBuildTree(e, parent, fullpath)
229 }
230
231 return nil
232}
233
234func (h *buildTreeHelper) doBuildTree(e *index.Entry, parent, fullpath string) {
235 if _, ok := h.trees[fullpath]; ok {

Callers 1

BuildTreeMethod · 0.95

Calls 2

doBuildTreeMethod · 0.95
JoinMethod · 0.80

Tested by

no test coverage detected