| 6579 | } |
| 6580 | |
| 6581 | static void diff_flush_stat(struct diff_filepair *p, struct diff_options *o, |
| 6582 | struct diffstat_t *diffstat) |
| 6583 | { |
| 6584 | if (diff_unmodified_pair(p)) |
| 6585 | return; |
| 6586 | |
| 6587 | if ((DIFF_FILE_VALID(p->one) && S_ISDIR(p->one->mode)) || |
| 6588 | (DIFF_FILE_VALID(p->two) && S_ISDIR(p->two->mode))) |
| 6589 | return; /* no useful stat for tree diffs */ |
| 6590 | |
| 6591 | run_diffstat(p, o, diffstat); |
| 6592 | } |
| 6593 | |
| 6594 | static void diff_flush_checkdiff(struct diff_filepair *p, |
| 6595 | struct diff_options *o) |
no test coverage detected