MCPcopy Create free account
hub / github.com/git/git / limit_left_right

Function limit_left_right

revision.c:1422–1436  ·  view source on GitHub ↗

Assumes either left_only or right_only is set */

Source from the content-addressed store, hash-verified

1420
1421/* Assumes either left_only or right_only is set */
1422static 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
1438static int limit_list(struct rev_info *revs)
1439{

Callers 1

limit_listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected