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

Function queue_blames

blame.c:1218–1234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1216 */
1217
1218static void queue_blames(struct blame_scoreboard *sb, struct blame_origin *porigin,
1219 struct blame_entry *sorted)
1220{
1221 if (porigin->suspects)
1222 porigin->suspects = blame_merge(porigin->suspects, sorted);
1223 else {
1224 struct blame_origin *o;
1225 for (o = get_blame_suspects(porigin->commit); o; o = o->next) {
1226 if (o->suspects) {
1227 porigin->suspects = sorted;
1228 return;
1229 }
1230 }
1231 porigin->suspects = sorted;
1232 prio_queue_put(&sb->commits, porigin->commit);
1233 }
1234}
1235
1236/*
1237 * Fill the blob_sha1 field of an origin if it hasn't, so that later

Callers 3

pass_blame_to_parentFunction · 0.85
pass_whole_blameFunction · 0.85
distribute_blameFunction · 0.85

Calls 3

blame_mergeFunction · 0.85
get_blame_suspectsFunction · 0.85
prio_queue_putFunction · 0.85

Tested by

no test coverage detected