(e *index.Entry)
| 193 | } |
| 194 | |
| 195 | func (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 | |
| 209 | func (h *buildTreeHelper) doBuildTree(e *index.Entry, parent, fullpath string) { |
| 210 | if _, ok := h.trees[fullpath]; ok { |
no test coverage detected