| 1216 | */ |
| 1217 | |
| 1218 | static 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 |
no test coverage detected