From 320df4eae0b1048d76f0725c9cf28cd691d60f10 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 12 Sep 2006 18:46:37 +0200 Subject: [PATCH] Improve comments --- tig.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tig.c b/tig.c index 96ab67f..f3dc7b7 100644 --- 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]); -- 2.30.2