Skip to content

Commit 712d352

Browse files
committed
Merge branch 'tr/maint-cherry-pick-list' into maint
* tr/maint-cherry-pick-list: cherry_pick_list: quit early if one side is empty
2 parents 8cc3709 + 36c0797 commit 712d352

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

revision.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,9 @@ static void cherry_pick_list(struct commit_list *list, struct rev_info *revs)
547547
right_count++;
548548
}
549549

550+
if (!left_count || !right_count)
551+
return;
552+
550553
left_first = left_count < right_count;
551554
init_patch_ids(&ids);
552555
if (revs->diffopt.nr_paths) {

0 commit comments

Comments
 (0)