chiark / gitweb /
Improve comments
authorJonas Fonseca <fonseca@diku.dk>
Tue, 12 Sep 2006 16:46:37 +0000 (18:46 +0200)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Tue, 12 Sep 2006 16:46:37 +0000 (18:46 +0200)
tig.c

diff --git a/tig.c b/tig.c
index 96ab67ffb7fcd280efabb7de8a2006744f77d0da..f3dc7b78785338aef17c2a8ba05a117f812332d4 100644 (file)
--- a/tig.c
+++ b/tig.c
@@ -2813,7 +2813,7 @@ update_rev_graph(struct rev_graph *graph)
 {
        size_t i;
 
-       /* First traverse all lines of revisions up to the active one. */
+       /* First, traverse all lines of revisions up to the active one. */
        for (graph->pos = 0; graph->pos < graph->size; graph->pos++) {
                if (!strcmp(graph->rev[graph->pos], graph->commit->id))
                        break;
@@ -2821,10 +2821,11 @@ update_rev_graph(struct rev_graph *graph)
                push_rev_graph(graph->next, graph->rev[graph->pos]);
        }
 
+       /* Interleave the new revision parent(s). */
        for (i = 0; i < graph->parents->size; i++)
                push_rev_graph(graph->next, graph->parents->rev[i]);
 
-       /* FIXME: Moving branches left and right when collapsing a branch. */
+       /* Lastly, put any remaining revisions. */
        for (i = graph->pos + 1; i < graph->size; i++)
                push_rev_graph(graph->next, graph->rev[i]);