Convert to TrackingOptions.
(&self)
| 202 | |
| 203 | /// Convert to TrackingOptions. |
| 204 | fn to_tracking_options(&self) -> TrackingOptions { |
| 205 | let mut options = TrackingOptions::default() |
| 206 | .with_recursive(self.recursive && !self.no_recursive) |
| 207 | .with_force(self.force) |
| 208 | .with_keep_recorded(self.keep); |
| 209 | options.dry_run = self.dry_run; |
| 210 | options |
| 211 | } |
| 212 | |
| 213 | /// Delete a file from the filesystem. |
| 214 | fn delete_file(&self, repo_root: &std::path::Path, path: &str) -> std::io::Result<()> { |