(root: &Path, pattern: &str)
| 2429 | } |
| 2430 | |
| 2431 | fn git_ref_count(root: &Path, pattern: &str) -> usize { |
| 2432 | let git = GitRepository::open(root).unwrap(); |
| 2433 | git.references_glob(pattern) |
| 2434 | .map(|refs| refs.flatten().count()) |
| 2435 | .unwrap_or(0) |
| 2436 | } |
| 2437 | } |