| 449 | } |
| 450 | |
| 451 | static int prepare_submodule_diff_summary(struct repository *r, struct rev_info *rev, |
| 452 | const char *path, |
| 453 | struct commit *left, struct commit *right, |
| 454 | struct commit_list *merge_bases) |
| 455 | { |
| 456 | struct commit_list *list; |
| 457 | |
| 458 | repo_init_revisions(r, rev, NULL); |
| 459 | setup_revisions(0, NULL, rev, NULL); |
| 460 | rev->left_right = 1; |
| 461 | rev->first_parent_only = 1; |
| 462 | left->object.flags |= SYMMETRIC_LEFT; |
| 463 | add_pending_object(rev, &left->object, path); |
| 464 | add_pending_object(rev, &right->object, path); |
| 465 | for (list = merge_bases; list; list = list->next) { |
| 466 | list->item->object.flags |= UNINTERESTING; |
| 467 | add_pending_object(rev, &list->item->object, |
| 468 | oid_to_hex(&list->item->object.oid)); |
| 469 | } |
| 470 | return prepare_revision_walk(rev); |
| 471 | } |
| 472 | |
| 473 | static void print_submodule_diff_summary(struct repository *r, struct rev_info *rev, struct diff_options *o) |
| 474 | { |
no test coverage detected