Function
directory_facets
(counts: impl IntoIterator<Item = (String, usize)>)
Source from the content-addressed store, hash-verified
| 345 | } |
| 346 | |
| 347 | fn directory_facets(counts: impl IntoIterator<Item = (String, usize)>) -> Vec<(String, usize)> { |
| 348 | let mut facets: Vec<_> = counts.into_iter().collect(); |
| 349 | facets.sort_by(|a, b| b.1.cmp(&a.1).then_with(|| a.0.cmp(&b.0))); |
| 350 | facets.truncate(10); |
| 351 | facets |
| 352 | } |
| 353 | |
| 354 | /// Search graph-rendered bytes without consulting the working-copy index. |
| 355 | /// Path/type matching and line verification use the same syntext machinery as |
Tested by
no test coverage detected