summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be04d93)
raw | patch | inline | side by side (parent: be04d93)
author | Jonas Fonseca <fonseca@diku.dk> | |
Thu, 14 Sep 2006 00:58:23 +0000 (02:58 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Thu, 14 Sep 2006 00:58:23 +0000 (02:58 +0200) |
tig.c | patch | blob | history |
index fefec61ee15b1a4d586d4dc7fb81959815fc5774..f3109f641fe8803738938b297bc6c44911fcf26b 100644 (file)
--- a/tig.c
+++ b/tig.c
}
}
-void
-update_rev_graph(struct rev_graph *graph)
+/* Prepare the next rev graph */
+static void
+prepare_rev_graph(struct rev_graph *graph)
{
size_t i;
/* Lastly, put any remaining revisions. */
for (i = graph->pos + 1; i < graph->size; i++)
push_rev_graph(graph->next, graph->rev[i]);
+}
+
+static void
+update_rev_graph(struct rev_graph *graph)
+{
+ prepare_rev_graph(graph);
- draw_rev_graph(graph);
- done_rev_graph(graph->prev);
+ draw_rev_graph(graph->prev);
+ done_rev_graph(graph->prev->prev);
}