Check if content should be diffed based on current options. This considers force_rediff and other flags. # Arguments `mtime_unchanged` - Whether the file's mtime is unchanged # Returns `true` if the file should be diffed.
(&self, mtime_unchanged: bool)
| 352 | /// |
| 353 | /// `true` if the file should be diffed. |
| 354 | pub fn should_diff(&self, mtime_unchanged: bool) -> bool { |
| 355 | if self.force_rediff { |
| 356 | return true; |
| 357 | } |
| 358 | if self.check_mtime && mtime_unchanged { |
| 359 | return false; |
| 360 | } |
| 361 | true |
| 362 | } |
| 363 | } |
| 364 | |
| 365 | impl Default for WorkflowOptions { |
nothing calls this directly
no outgoing calls
no test coverage detected