Get status options based on command settings.
(&self)
| 353 | |
| 354 | /// Get status options based on command settings. |
| 355 | pub(crate) fn get_status_options(&self) -> StatusOptions { |
| 356 | let mut options = StatusOptions::default(); |
| 357 | |
| 358 | if self.no_untracked { |
| 359 | options = options.with_untracked(false); |
| 360 | } |
| 361 | |
| 362 | if let Some(ref path) = self.path { |
| 363 | options = options.filter_path(PathBuf::from(path)); |
| 364 | } |
| 365 | |
| 366 | options |
| 367 | } |
| 368 | |
| 369 | fn print_snapshot_status(&self, status: &SnapshotStatus) { |
| 370 | if let Some(snapshot) = status.snapshot { |