| 84 | } |
| 85 | |
| 86 | static int init_patch_id_entry(struct patch_id *patch, |
| 87 | struct commit *commit, |
| 88 | struct patch_ids *ids) |
| 89 | { |
| 90 | struct object_id header_only_patch_id; |
| 91 | |
| 92 | patch->commit = commit; |
| 93 | if (commit_patch_id(commit, &ids->diffopts, &header_only_patch_id, 1)) |
| 94 | return -1; |
| 95 | |
| 96 | hashmap_entry_init(&patch->ent, oidhash(&header_only_patch_id)); |
| 97 | return 0; |
| 98 | } |
| 99 | |
| 100 | struct patch_id *patch_id_iter_first(struct commit *commit, |
| 101 | struct patch_ids *ids) |
no test coverage detected