(e repoEntry, key string)
| 626 | } |
| 627 | |
| 628 | func entryName(e repoEntry, key string) string { |
| 629 | if e.Name != "" { |
| 630 | return e.Name |
| 631 | } |
| 632 | parts := strings.Split(key, "/") |
| 633 | if len(parts) > 1 { |
| 634 | return parts[len(parts)-1] |
| 635 | } |
| 636 | return key |
| 637 | } |
| 638 | |
| 639 | func entryPath(e repoEntry, kind string) string { |
| 640 | switch kind { |