Get status options based on command settings.
(&self)
| 241 | |
| 242 | /// Get status options based on command settings. |
| 243 | fn get_status_options(&self) -> StatusOptions { |
| 244 | let mut options = StatusOptions::default(); |
| 245 | |
| 246 | if self.no_untracked { |
| 247 | options = options.with_untracked(false); |
| 248 | } |
| 249 | |
| 250 | if let Some(ref path) = self.path { |
| 251 | options = options.filter_path(PathBuf::from(path)); |
| 252 | } |
| 253 | |
| 254 | options |
| 255 | } |
| 256 | |
| 257 | /// Print the status in long (human-readable) format. |
| 258 | fn print_long_format(&self, status: &RepositoryStatus) -> CliResult<()> { |