| 421 | } |
| 422 | |
| 423 | void show_decorations(struct rev_info *opt, struct commit *commit) |
| 424 | { |
| 425 | struct strbuf sb = STRBUF_INIT; |
| 426 | |
| 427 | if (opt->sources) { |
| 428 | char **slot = revision_sources_peek(opt->sources, commit); |
| 429 | |
| 430 | if (slot && *slot) |
| 431 | fprintf(opt->diffopt.file, "\t%s", *slot); |
| 432 | } |
| 433 | if (!opt->show_decorations) |
| 434 | return; |
| 435 | format_decorations(&sb, commit, opt->diffopt.use_color, NULL); |
| 436 | fputs(sb.buf, opt->diffopt.file); |
| 437 | strbuf_release(&sb); |
| 438 | } |
| 439 | |
| 440 | void fmt_output_subject(struct strbuf *filename, |
| 441 | const char *subject, |
no test coverage detected