threads / patch / 1155

patch, 2 partsFix --topo-order, --max-age interaction issue

Subject: [PATCH 2/2] Fix --topo-order, --max-age interaction issue

## tl;dr

One message between Jul 7, 2005 and Jul 7, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Jon Seymour· Jul 7, 2005, 02:38 UTC · lore

Applied the --merge-order, --max-age fix to fix the --topo-order problem demonstrated by the test case in the previous patch.

Signed-off-by: Jon Seymour <jon.seymour@gmail.com>
---
 rev-list.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
8238686fd422959dae50a908b3761aa545be1c4f
Show changes to rev-list.c +1 −1
diff --git a/rev-list.c b/rev-list.c
--- a/rev-list.c
+++ b/rev-list.c
@@ -75,7 +75,7 @@ static int filter_commit(struct commit *
 		return CONTINUE;
 	if (max_age != -1 && (commit->date < max_age)) {
 		stop_traversal=1;
-		return merge_order?CONTINUE:STOP;
+		return (merge_order||topo_order)?CONTINUE:STOP;
 	}
 	if (max_count != -1 && !max_count--)
 		return STOP;
------------

← back to recent threads