diff options
author | Andy Green <andy@warmcat.com> | 2018-06-13 10:02:15 +0800 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2018-06-13 10:32:44 +0200 |
commit | edd41cb20deeadc2264839ac0e73dd06af58f864 (patch) | |
tree | 808df007b96c07385e9a35ba46cb8a1c3b5f7b4e | |
parent | 14285ad3f37e54ae25bf93e877361dcbae16fe79 (diff) | |
download | cgit-edd41cb20deeadc2264839ac0e73dd06af58f864.tar.gz |
ui-tree: ls_tail: add walk table param
Arrange that walk_tree_ctx is available in ls_tail, we
will make use of it shortly.
Signed-off-by: Andy Green <andy@warmcat.com>
-rw-r--r-- | ui-tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -368,7 +368,7 @@ static void ls_head(void) html("</tr>\n"); } -static void ls_tail(void) +static void ls_tail(struct walk_tree_context *walk_tree_ctx) { html("</table>\n"); cgit_print_layout_end(); @@ -390,7 +390,7 @@ static void ls_tree(const struct object_id *oid, char *path, struct walk_tree_co ls_head(); read_tree_recursive(tree, "", 0, 1, &paths, ls_item, walk_tree_ctx); - ls_tail(); + ls_tail(walk_tree_ctx); } @@ -473,7 +473,7 @@ void cgit_print_tree(const char *rev, char *path, bool use_render) read_tree_recursive(commit->tree, "", 0, 0, &paths, walk_tree, &walk_tree_ctx); if (walk_tree_ctx.state == 1) - ls_tail(); + ls_tail(&walk_tree_ctx); else if (walk_tree_ctx.state == 2) cgit_print_layout_end(); else |