On 06/20/2018 06:13 PM, Andy Green wrote:

diff --git a/ui-tree.c b/ui-tree.c
index 6ffd4dd..2e94755 100644
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -102,16 +102,23 @@ static void print_buffer(const char *basename, char *buf, 
unsigned long size)
  }
static void render_buffer(struct cgit_filter *render, const char *name,
-               char *buf, unsigned long size)
+                         char *buf, unsigned long size)
  {
        char *filter_arg = xstrdup(name);
+       struct strbuf sb_pre = STRBUF_INIT, sb_post = STRBUF_INIT;
+
+       cgit_repo_create_url(&sb_pre, &sb_post, "plain", ctx.qry.head, NULL);
+
+       fprintf(stderr, "'%s' '%s'\n", sb_pre.buf, sb_post.buf);

Whoops... I removed this debugging line in the version here

https://warmcat.com/git/cgit/patch/?id=ab7ded33bfd6603537420bc3dd4ac96372134425

-Andy
_______________________________________________
CGit mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/cgit

Reply via email to