| 178 | } |
| 179 | |
| 180 | static void generate_id_list(int stable, int verbatim) |
| 181 | { |
| 182 | struct object_id oid, n, result; |
| 183 | size_t patchlen; |
| 184 | struct strbuf line_buf = STRBUF_INIT; |
| 185 | |
| 186 | oidclr(&oid, the_repository->hash_algo); |
| 187 | while (!feof(stdin)) { |
| 188 | patchlen = get_one_patchid(&n, &result, &line_buf, stable, verbatim); |
| 189 | flush_current_id(patchlen, &oid, &result); |
| 190 | oidcpy(&oid, &n); |
| 191 | } |
| 192 | strbuf_release(&line_buf); |
| 193 | } |
| 194 | |
| 195 | static const char *const patch_id_usage[] = { |
| 196 | N_("git patch-id [--stable | --unstable | --verbatim]"), NULL |
no test coverage detected