| 251 | } |
| 252 | |
| 253 | static struct commit *mapped_commit(kh_oid_map_t *replayed_commits, |
| 254 | struct commit *commit, |
| 255 | struct commit *fallback) |
| 256 | { |
| 257 | khint_t pos; |
| 258 | if (!commit) |
| 259 | return fallback; |
| 260 | pos = kh_get_oid_map(replayed_commits, commit->object.oid); |
| 261 | if (pos == kh_end(replayed_commits)) |
| 262 | return fallback; |
| 263 | return kh_value(replayed_commits, pos); |
| 264 | } |
| 265 | |
| 266 | static struct commit *pick_regular_commit(struct repository *repo, |
| 267 | struct commit *pickme, |
no outgoing calls
no test coverage detected