Remove insane overlapping bit ranges from epoch.c

..and move the DUPCHECK to rev-list.c since both the merge-order and the
upcoming topo-sort get confused by dups.
This commit is contained in:
Linus Torvalds
2005-07-06 09:56:16 -07:00
parent 7e21c29b56
commit bce6286670
3 changed files with 13 additions and 15 deletions

10
epoch.c
View File

@ -582,14 +582,8 @@ int sort_list_in_merge_order(struct commit_list *list, emitter_func emitter)
int action = CONTINUE;
struct commit_list *reversed = NULL;
for (; list; list = list->next) {
struct commit *next = list->item;
if (!(next->object.flags & DUPCHECK)) {
next->object.flags |= DUPCHECK;
commit_list_insert(list->item, &reversed);
}
}
for (; list; list = list->next)
commit_list_insert(list->item, &reversed);
if (!reversed)
return ret;