Convert command options to TrackingOptions.
(&self)
| 249 | |
| 250 | /// Convert command options to TrackingOptions. |
| 251 | fn get_tracking_options(&self) -> TrackingOptions { |
| 252 | let recursive = self.recursive && !self.no_recursive; |
| 253 | |
| 254 | TrackingOptions::default() |
| 255 | .with_recursive(recursive) |
| 256 | .with_force(self.force) |
| 257 | } |
| 258 | |
| 259 | /// Collect all untracked files in the repository. |
| 260 | fn collect_untracked_files(&self, repo: &Repository) -> CliResult<Vec<PathBuf>> { |