Get all tracked file paths (not untracked).
(&self)
| 609 | |
| 610 | /// Get all tracked file paths (not untracked). |
| 611 | pub fn tracked_paths(&self) -> Vec<&Path> { |
| 612 | self.entries |
| 613 | .iter() |
| 614 | .filter(|e| !e.status.is_untracked()) |
| 615 | .map(|e| e.path()) |
| 616 | .collect() |
| 617 | } |
| 618 | } |
| 619 | |
| 620 | impl Default for RepositoryStatus { |