diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-04 22:26:44 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-04 22:26:44 -0800 |
commit | 712d352577012d5035da69bbf49ea0f0df8bb7da (patch) | |
tree | e38d970678cdca4ea8d6488c5200c62be5ccb268 | |
parent | 8cc3709df0e4f8e4f2aca6ae68b5b4f145787252 (diff) | |
parent | 36c079756f9f3ad0bbbe2097550c62427670146b (diff) | |
download | git-712d352577012d5035da69bbf49ea0f0df8bb7da.tar.gz git-712d352577012d5035da69bbf49ea0f0df8bb7da.tar.xz |
Merge branch 'tr/maint-cherry-pick-list' into maint
* tr/maint-cherry-pick-list:
cherry_pick_list: quit early if one side is empty
-rw-r--r-- | revision.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/revision.c b/revision.c index 3ba6d991f..a8f0aa4c6 100644 --- a/revision.c +++ b/revision.c @@ -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) { |