(e *index.Entry)
| 218 | } |
| 219 | |
| 220 | func (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 | |
| 234 | func (h *buildTreeHelper) doBuildTree(e *index.Entry, parent, fullpath string) { |
| 235 | if _, ok := h.trees[fullpath]; ok { |
no test coverage detected