summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ce5c87)
raw | patch | inline | side by side (parent: 2ce5c87)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 12 Sep 2006 16:46:37 +0000 (18:46 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Tue, 12 Sep 2006 16:46:37 +0000 (18:46 +0200) |
tig.c | patch | blob | history |
index 96ab67ffb7fcd280efabb7de8a2006744f77d0da..f3dc7b78785338aef17c2a8ba05a117f812332d4 100644 (file)
--- a/tig.c
+++ b/tig.c
{
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;
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]);