Browse Source

[PATCH] Fixes a problem with --merge-order A B (A is linear descendent of a merge B)

This patch passes the test case introduced by the previous patch.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
maint
Jon Seymour 20 years ago committed by Linus Torvalds
parent
commit
ff9206e72c
  1. 2
      epoch.c

2
epoch.c

@ -606,7 +606,7 @@ int sort_list_in_merge_order(struct commit_list *list, emitter_func emitter) @@ -606,7 +606,7 @@ int sort_list_in_merge_order(struct commit_list *list, emitter_func emitter)
while (reversed) {
struct commit * next = pop_commit(&reversed);

if (!(next->object.flags & VISITED)) {
if (!(next->object.flags & VISITED) && next!=base) {
sort_first_epoch(next, &stack);
if (reversed) {
/*

Loading…
Cancel
Save