提交 d2775a81 编写于 作者: J Jon Seymour 提交者: Linus Torvalds

[PATCH] Tidy up - slight simplification of rev-list.c

This patch implements a small tidy up of rev-list.c to reduce
(but not eliminate) the amount of ugliness associated
with the merge_order flag.
Signed-off-by: NJon Seymour <jon.seymour@gmail.com>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 d2d02a49
......@@ -71,19 +71,15 @@ static void show_commit(struct commit *commit)
static int filter_commit(struct commit * commit)
{
if (merge_order && stop_traversal && commit->object.flags & BOUNDARY)
if (stop_traversal && (commit->object.flags & BOUNDARY))
return STOP;
if (commit->object.flags & (UNINTERESTING|SHOWN))
return CONTINUE;
if (min_age != -1 && (commit->date > min_age))
return CONTINUE;
if (max_age != -1 && (commit->date < max_age)) {
if (!merge_order)
return STOP;
else {
stop_traversal = 1;
return CONTINUE;
}
stop_traversal=1;
return merge_order?CONTINUE:STOP;
}
if (max_count != -1 && !max_count--)
return STOP;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册