From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Sat, 16 Jun 2018 15:38:38 +0100 Subject: [PATCH 09/11] ui-tree: ls_tail: add walk table param In-Reply-To: <152885533567.7253.8000719108221063308.stgit@mail.warmcat.com> References: <152885510454.7253.3542488576272033383.stgit@mail.warmcat.com> <152885533567.7253.8000719108221063308.stgit@mail.warmcat.com> Message-ID: <20180616143838.GX1922@john.keeping.me.uk> On Wed, Jun 13, 2018 at 10:02:15AM +0800, Andy Green wrote: > Arrange that walk_tree_ctx is available in ls_tail, we > will make use of it shortly. > > Signed-off-by: Andy Green Reviewed-by: John Keeping > --- > ui-tree.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/ui-tree.c b/ui-tree.c > index bb10b17..53b5594 100644 > --- a/ui-tree.c > +++ b/ui-tree.c > @@ -368,7 +368,7 @@ static void ls_head(void) > html("\n"); > } > > -static void ls_tail(void) > +static void ls_tail(struct walk_tree_context *walk_tree_ctx) > { > html("\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 > > _______________________________________________ > CGit mailing list > CGit at lists.zx2c4.com > https://lists.zx2c4.com/mailman/listinfo/cgit