return 1 if any change is found; otherwise, return 0 */
| 6564 | |
| 6565 | /* return 1 if any change is found; otherwise, return 0 */ |
| 6566 | static int diff_flush_patch_quietly(struct diff_filepair *p, struct diff_options *o) |
| 6567 | { |
| 6568 | FILE *saved_file = o->file; |
| 6569 | int saved_found_changes = o->found_changes; |
| 6570 | int ret; |
| 6571 | |
| 6572 | o->file = NULL; |
| 6573 | o->found_changes = 0; |
| 6574 | diff_flush_patch(p, o); |
| 6575 | ret = o->found_changes; |
| 6576 | o->file = saved_file; |
| 6577 | o->found_changes |= saved_found_changes; |
| 6578 | return ret; |
| 6579 | } |
| 6580 | |
| 6581 | static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o, |
| 6582 | struct diffstat_t *diffstat) |
no test coverage detected