aboutsummaryrefslogtreecommitdiff
path: root/epoch.c
diff options
context:
space:
mode:
authorJon Seymour <jon.seymour@gmail.com>2005-06-30 11:51:34 +1000
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-29 20:53:10 -0700
commit99c2bc93000dfadc3ac26ddced23e50520cf30d0 (patch)
tree6f7bdf5740f757d49d02a16ea691e6093373e60c /epoch.c
parentda4b932a0c5b249694216b1580b7bc2ded9e0280 (diff)
downloadgit-99c2bc93000dfadc3ac26ddced23e50520cf30d0.tar.gz
git-99c2bc93000dfadc3ac26ddced23e50520cf30d0.tar.xz
[PATCH] Fix for git-rev-list --merge-order B ^A (A,B share common base) [rev 2]
This patch makes --merge-order produce the same list as git-rev-list without --merge-order specified. In particular, if the graph looks like this: A | B |/ C | D The both git-rev-list B ^A and git-rev-list --merge-order will produce B. The unit tests have been changed to reflect the fact that the prune points are now formally part of the start list that is used to perform the --merge-order sort. That is: git-rev-list --merge-order A ^D used to produce = A | C It now produces: ^ A | C Signed-off-by: Jon Seymour <jon.seymour@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'epoch.c')
-rw-r--r--epoch.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/epoch.c b/epoch.c
index 904cc0d4b..3cbff72b3 100644
--- a/epoch.c
+++ b/epoch.c
@@ -585,11 +585,9 @@ int sort_list_in_merge_order(struct commit_list *list, emitter_func emitter)
for (; list; list = list->next) {
struct commit *next = list->item;
- if (!(next->object.flags & UNINTERESTING)) {
- if (!(next->object.flags & DUPCHECK)) {
- next->object.flags |= DUPCHECK;
- commit_list_insert(list->item, &reversed);
- }
+ if (!(next->object.flags & DUPCHECK)) {
+ next->object.flags |= DUPCHECK;
+ commit_list_insert(list->item, &reversed);
}
}