diff options
Diffstat (limited to 'source/ui-shared.h')
-rw-r--r--source/ui-shared.h8
1 file changed, 8 insertions, 0 deletions
diff --git a/source/ui-shared.h b/source/ui-shared.h
index 93cc9d2..dd90196 100644
--- a/source/ui-shared.h
+++ b/source/ui-shared.h
@@ -32,6 +32,14 @@ extern char *cgit_fileurl(const char *reponame, const char *pagename, const char
extern char *cgit_pageurl(const char *reponame, const char *pagename, const char *query);
/*
+ * The url of the current repository's tree page at head, split where a path
+ * in the tree goes, for a filter to build links of its own from. Both parts
+ * are escaped for a url but not for HTML, and query stays empty for the
+ * default branch.
+ */
+extern void cgit_tree_url(const char *head, struct strbuf *base, struct strbuf *query);
+
+/*
* Call fn once for every URL this repository can be cloned from.
*/
extern void cgit_add_clone_urls(void (*fn)(const char *));