Skip to content

Commit

Permalink
Merge branch 'tr/maint-cherry-pick-list' into maint
Browse files Browse the repository at this point in the history
* tr/maint-cherry-pick-list:
  cherry_pick_list: quit early if one side is empty
  • Loading branch information
Junio C Hamano committed Mar 5, 2010
2 parents 8cc3709 + 36c0797 commit 712d352
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions revision.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ static void cherry_pick_list(struct commit_list *list, struct rev_info *revs)
right_count++;
}

if (!left_count || !right_count)
return;

left_first = left_count < right_count;
init_patch_ids(&ids);
if (revs->diffopt.nr_paths) {
Expand Down

0 comments on commit 712d352

Please sign in to comment.