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