RepoNames constructor
paths: every repository of the set, by path from the root ('' for
the root, named .).
Implementation
RepoNames(Iterable<String> paths) : paths = List.unmodifiable(paths) {
final bySegment = <String, List<String>>{};
for (final path in this.paths) {
bySegment.putIfAbsent(_last(path), () => []).add(path);
}
_bySegment = bySegment;
}