| 98 | } |
| 99 | |
| 100 | struct patch_id *patch_id_iter_first(struct commit *commit, |
| 101 | struct patch_ids *ids) |
| 102 | { |
| 103 | struct patch_id patch; |
| 104 | |
| 105 | if (!patch_id_defined(commit)) |
| 106 | return NULL; |
| 107 | |
| 108 | memset(&patch, 0, sizeof(patch)); |
| 109 | if (init_patch_id_entry(&patch, commit, ids)) |
| 110 | return NULL; |
| 111 | |
| 112 | return hashmap_get_entry(&ids->patches, &patch, ent, NULL); |
| 113 | } |
| 114 | |
| 115 | struct patch_id *patch_id_iter_next(struct patch_id *cur, |
| 116 | struct patch_ids *ids) |
no test coverage detected