Create a DiffOutputConfig from the command settings.
(&self)
| 248 | |
| 249 | /// Create a DiffOutputConfig from the command settings. |
| 250 | pub(crate) fn get_output_config(&self) -> DiffOutputConfig { |
| 251 | DiffOutputConfig { |
| 252 | context_lines: self.context, |
| 253 | color: !self.no_color, |
| 254 | format: self.get_format(), |
| 255 | stat_width: 80, |
| 256 | show_line_numbers: false, |
| 257 | show_path_prefix: true, |
| 258 | word_diff: self.word_diff, |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | fn workspace_mode(&self) -> WorkspaceTxnMode { |
| 263 | if self.change.is_some() || self.snapshot || self.git { |