| 94 | } |
| 95 | |
| 96 | static void read_input_file(struct strbuf *sb, const char *file) |
| 97 | { |
| 98 | if (file) { |
| 99 | if (strbuf_read_file(sb, file, 0) < 0) |
| 100 | die_errno(_("could not read input file '%s'"), file); |
| 101 | } else { |
| 102 | if (strbuf_read(sb, fileno(stdin), 0) < 0) |
| 103 | die_errno(_("could not read from stdin")); |
| 104 | } |
| 105 | strbuf_complete_line(sb); |
| 106 | } |
| 107 | |
| 108 | static void interpret_trailers(const struct process_trailer_options *opts, |
| 109 | struct list_head *new_trailer_head, |
no test coverage detected