Assumes either left_only or right_only is set */
| 1420 | |
| 1421 | /* Assumes either left_only or right_only is set */ |
| 1422 | static void limit_left_right(struct commit_list *list, struct rev_info *revs) |
| 1423 | { |
| 1424 | struct commit_list *p; |
| 1425 | |
| 1426 | for (p = list; p; p = p->next) { |
| 1427 | struct commit *commit = p->item; |
| 1428 | |
| 1429 | if (revs->right_only) { |
| 1430 | if (commit->object.flags & SYMMETRIC_LEFT) |
| 1431 | commit->object.flags |= SHOWN; |
| 1432 | } else /* revs->left_only is set */ |
| 1433 | if (!(commit->object.flags & SYMMETRIC_LEFT)) |
| 1434 | commit->object.flags |= SHOWN; |
| 1435 | } |
| 1436 | } |
| 1437 | |
| 1438 | static int limit_list(struct rev_info *revs) |
| 1439 | { |