]> granicus.if.org Git - cgit/commit
ui-shared: add helper for generating non-urlencoded links
authorAndy Green <andy@warmcat.com>
Tue, 19 Jun 2018 02:32:25 +0000 (10:32 +0800)
committerAndy Green <andy@warmcat.com>
Thu, 28 Jun 2018 23:53:21 +0000 (07:53 +0800)
commit1592728359c15e1a2f481414ae4ccd8d6feb3251
treebb332432660af3c15daf9eeb36a4a3b1fae4f874
parent2a39e59d4be651d709263056407781d99e2fa4fc
ui-shared: add helper for generating non-urlencoded links

We are going to have to produce plain links in the next patch.
But depending on config, the links are not simple.

Reproduce the logic in repolink() to generate correctly-
formatted links in a strbuf, without urlencoding, in a reusable
helper cgit_repo_create_url().

Signed-off-by: Andy Green <andy@warmcat.com>
ui-shared.c
ui-shared.h