Instead, use the value of the state variable to determine whether the
footer needs to be drawn.
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
char *curr_rev;
char *match_path;
char *curr_rev;
char *match_path;
static int state;
static void print_text_buffer(const char *name, char *buf, unsigned long size)
static int state;
static void print_text_buffer(const char *name, char *buf, unsigned long size)
html("<th class='right'>Size</th>");
html("<th/>");
html("</tr>\n");
html("<th class='right'>Size</th>");
html("<th/>");
html("</tr>\n");
}
static void ls_tail()
{
}
static void ls_tail()
{
}
static void ls_tree(const unsigned char *sha1, char *path)
}
static void ls_tree(const unsigned char *sha1, char *path)
match_path = path;
state = 0;
read_tree_recursive(commit->tree, "", 0, 0, &paths, walk_tree, NULL);
match_path = path;
state = 0;
read_tree_recursive(commit->tree, "", 0, 0, &paths, walk_tree, NULL);
+ if (state == 1)
+ ls_tail();