Get all tracked file paths (not untracked).
(&self)
| 621 | |
| 622 | /// Get all tracked file paths (not untracked). |
| 623 | pub fn tracked_paths(&self) -> Vec<&Path> { |
| 624 | self.entries |
| 625 | .iter() |
| 626 | .filter(|e| !e.status.is_untracked()) |
| 627 | .map(|e| e.path()) |
| 628 | .collect() |
| 629 | } |
| 630 | } |
| 631 | |
| 632 | impl Default for RepositoryStatus { |