git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Jon Seymour <jon.seymour@gmail.com>
Date
Jul 7, 2005, 02:38 UTC
Message-ID
<20050707023847.12938.qmail@blackcubes.dyndns.org>

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
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;
------------
Message 1 of 1 in “Fix --topo-order, --max-age interaction issue”
  1. 2/2 Fix --topo-order, --max-age interaction issueJon Seymour, Jul 7, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.