| 562 | } |
| 563 | |
| 564 | static void show_sig_lines(struct rev_info *opt, int status, const char *bol) |
| 565 | { |
| 566 | const char *color, *reset, *eol; |
| 567 | |
| 568 | color = diff_get_color_opt(&opt->diffopt, |
| 569 | status ? DIFF_WHITESPACE : DIFF_FRAGINFO); |
| 570 | reset = diff_get_color_opt(&opt->diffopt, DIFF_RESET); |
| 571 | while (*bol) { |
| 572 | eol = strchrnul(bol, '\n'); |
| 573 | fprintf(opt->diffopt.file, "%s%.*s%s%s", color, (int)(eol - bol), bol, reset, |
| 574 | *eol ? "\n" : ""); |
| 575 | graph_show_oneline(opt->graph); |
| 576 | bol = (*eol) ? (eol + 1) : eol; |
| 577 | } |
| 578 | } |
| 579 | |
| 580 | static void show_signature(struct rev_info *opt, struct commit *commit) |
| 581 | { |
no test coverage detected