Get status options based on command settings.
(&self)
| 229 | |
| 230 | /// Get status options based on command settings. |
| 231 | fn get_status_options(&self) -> StatusOptions { |
| 232 | let mut options = StatusOptions::default(); |
| 233 | |
| 234 | if self.no_untracked { |
| 235 | options = options.with_untracked(false); |
| 236 | } |
| 237 | |
| 238 | if let Some(ref path) = self.path { |
| 239 | options = options.filter_path(PathBuf::from(path)); |
| 240 | } |
| 241 | |
| 242 | options |
| 243 | } |
| 244 | |
| 245 | /// Print the status in long (human-readable) format. |
| 246 | fn print_long_format(&self, status: &RepositoryStatus) -> CliResult<()> { |