summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ab580ac)
raw | patch | inline | side by side (parent: ab580ac)
author | Linus Torvalds <torvalds@g5.osdl.org> | |
Wed, 6 Jul 2005 17:25:04 +0000 (10:25 -0700) | ||
committer | Linus Torvalds <torvalds@g5.osdl.org> | |
Wed, 6 Jul 2005 17:25:04 +0000 (10:25 -0700) |
rev-list.c | patch | blob | history |
diff --git a/rev-list.c b/rev-list.c
index e4d167c003ac48bda30713accf51c88cb08caae2..f41adebd8a1b3b4c08231714fd7261eae09d8cbc 100644 (file)
--- a/rev-list.c
+++ b/rev-list.c
static int merge_order = 0;
static int show_breaks = 0;
static int stop_traversal = 0;
+static int topo_order = 0;
static void show_commit(struct commit *commit)
{
show_breaks = 1;
continue;
}
+ if (!strcmp(arg, "--topo-order")) {
+ topo_order = 1;
+ continue;
+ }
flags = 0;
if (*arg == '^') {
if (!merge_order) {
if (limited)
list = limit_list(list);
+ if (topo_order)
+ sort_in_topological_order(&list);
show_commit_list(list);
} else {
if (sort_list_in_merge_order(list, &process_commit)) {