mirror of
https://github.com/git/git.git
synced 2024-11-01 23:07:55 +01:00
Merge branch 'tr/maint-cherry-pick-list'
* tr/maint-cherry-pick-list: cherry_pick_list: quit early if one side is empty
This commit is contained in:
commit
68a4741484
1 changed files with 3 additions and 0 deletions
|
@ -547,6 +547,9 @@ static void cherry_pick_list(struct commit_list *list, struct rev_info *revs)
|
||||||
right_count++;
|
right_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!left_count || !right_count)
|
||||||
|
return;
|
||||||
|
|
||||||
left_first = left_count < right_count;
|
left_first = left_count < right_count;
|
||||||
init_patch_ids(&ids);
|
init_patch_ids(&ids);
|
||||||
if (revs->diffopt.nr_paths) {
|
if (revs->diffopt.nr_paths) {
|
||||||
|
|
Loading…
Reference in a new issue