Create a DiffOutputConfig from the command settings.
(&self)
| 194 | |
| 195 | /// Create a DiffOutputConfig from the command settings. |
| 196 | pub(crate) fn get_output_config(&self) -> DiffOutputConfig { |
| 197 | DiffOutputConfig { |
| 198 | context_lines: self.context, |
| 199 | color: !self.no_color, |
| 200 | format: self.get_format(), |
| 201 | stat_width: 80, |
| 202 | show_line_numbers: false, |
| 203 | show_path_prefix: true, |
| 204 | word_diff: self.word_diff, |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | impl Default for Diff { |