Create a new Diff command with default settings.
()
| 123 | impl Diff { |
| 124 | /// Create a new Diff command with default settings. |
| 125 | pub fn new() -> Self { |
| 126 | Self { |
| 127 | files: Vec::new(), |
| 128 | change: None, |
| 129 | algorithm: "myers".to_string(), |
| 130 | context: 3, |
| 131 | stat: false, |
| 132 | no_color: false, |
| 133 | name_only: false, |
| 134 | name_status: false, |
| 135 | short: false, |
| 136 | untracked: false, |
| 137 | cached: false, |
| 138 | git: false, |
| 139 | view: None, |
| 140 | from: None, |
| 141 | to: None, |
| 142 | snapshot: false, |
| 143 | word_diff: false, |
| 144 | json: false, |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | /// Builder: set files to diff. |
| 149 | pub fn with_files<I, S>(mut self, files: I) -> Self |
nothing calls this directly
no outgoing calls
no test coverage detected