(query: &str)
| 622 | } |
| 623 | |
| 624 | fn like_pattern(query: &str) -> String { |
| 625 | let mut pattern = String::with_capacity(query.len() + 2); |
| 626 | pattern.push('%'); |
| 627 | for ch in query.chars() { |
| 628 | match ch { |
| 629 | '%' | '_' | '\\' => { |
| 630 | pattern.push('\\'); |
| 631 | pattern.push(ch); |
| 632 | } |
| 633 | _ => pattern.push(ch), |
| 634 | } |
| 635 | } |
| 636 | pattern.push('%'); |
| 637 | pattern |
| 638 | } |
| 639 | |
| 640 | fn repo_identity_aliases(git_common_dir: Option<&Path>) -> Vec<String> { |
| 641 | let mut aliases = Vec::new(); |
no test coverage detected