| 234 | } |
| 235 | |
| 236 | static void mark_edge_parents_uninteresting(struct commit *commit, |
| 237 | struct rev_info *revs, |
| 238 | show_edge_fn show_edge) |
| 239 | { |
| 240 | struct commit_list *parents; |
| 241 | |
| 242 | for (parents = commit->parents; parents; parents = parents->next) { |
| 243 | struct commit *parent = parents->item; |
| 244 | if (!(parent->object.flags & UNINTERESTING)) |
| 245 | continue; |
| 246 | mark_tree_uninteresting(revs->repo, |
| 247 | repo_get_commit_tree(the_repository, parent)); |
| 248 | if (revs->edge_hint && !(parent->object.flags & SHOWN)) { |
| 249 | parent->object.flags |= SHOWN; |
| 250 | show_edge(parent); |
| 251 | } |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | static void add_edge_parents(struct commit *commit, |
| 256 | struct rev_info *revs, |
no test coverage detected