Skip to content

Commit

Permalink
Merge branch 'tr/maint-cherry-pick-list' into maint-1.6.6
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 7, 2010
2 parents 7f43e75 + 36c0797 commit 7b576f9
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 @@ -536,6 +536,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 7b576f9

Please sign in to comment.