MCPcopy Index your code
hub / github.com/git/git / mapped_commit

Function mapped_commit

replay.c:253–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253static 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
266static struct commit *pick_regular_commit(struct repository *repo,
267 struct commit *pickme,

Callers 1

pick_regular_commitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected