summaryrefslogtreecommitdiff
path: root/epoch.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 09:56:16 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-06 09:56:16 -0700
commitbce6286670c6735d0ca2fdf582047e0388dfcd84 (patch)
tree67b236ad312d3f1fb972f506e6239a47e0a5d775 /epoch.c
parent7e21c29b56f80e8fd24613207b4e0116659ad5f8 (diff)
downloadgit-bce6286670c6735d0ca2fdf582047e0388dfcd84.tar.gz
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.
Diffstat (limited to 'epoch.c')
-rw-r--r--epoch.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/epoch.c b/epoch.c
index abfd594bb9..7888f1da4e 100644
--- a/epoch.c
+++ b/epoch.c
@@ -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;