Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'tr/maint-cherry-pick-list' into maint
author
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Mar 2010 06:26:44 +0000
(22:26 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 5 Mar 2010 06:26:44 +0000
(22:26 -0800)
* tr/maint-cherry-pick-list:
cherry_pick_list: quit early if one side is empty
revision.c
patch
|
blob
|
history
raw
(from parent 1:
8cc3709
)
diff --git
a/revision.c
b/revision.c
index 3ba6d991f6e9789949c314c2981dfc6b208a6f66..a8f0aa4c676a882de7e5a2763d67f886340abcef 100644
(file)
--- 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) {