author | Junio C Hamano <gitster@pobox.com> | |
Tue, 2 Mar 2010 20:44:10 +0000 (12:44 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 2 Mar 2010 20:44:10 +0000 (12:44 -0800) |
* tr/maint-cherry-pick-list:
cherry_pick_list: quit early if one side is empty
cherry_pick_list: quit early if one side is empty
revision.c | patch | blob | history |
diff --git a/revision.c b/revision.c
index 438cc87b17fa3a5a7b57c3fcdf4289cd869b79a7..29721ecf84316d01b18ffdee8bdefa8dbb3887db 100644 (file)
--- a/revision.c
+++ b/revision.c
right_count++;
}
+ if (!left_count || !right_count)
+ return;
+
left_first = left_count < right_count;
init_patch_ids(&ids);
if (revs->diffopt.nr_paths) {