MCPcopy Create free account
hub / github.com/go-git/go-git / commitIndexEntry

Method commitIndexEntry

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

Source from the content-addressed store, hash-verified

193}
194
195func (h *buildTreeHelper) commitIndexEntry(e *index.Entry) error {
196 parts := strings.Split(e.Name, "/")
197
198 var fullpath string
199 for _, part := range parts {
200 parent := fullpath
201 fullpath = path.Join(fullpath, part)
202
203 h.doBuildTree(e, parent, fullpath)
204 }
205
206 return nil
207}
208
209func (h *buildTreeHelper) doBuildTree(e *index.Entry, parent, fullpath string) {
210 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