From afcdd083dab81afef744e261d81a452698188c30 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Mon, 3 Dec 2007 01:49:38 +0100 Subject: Add support for automatic and custom clone urls This adds support for two new parameters to cgitrc: clone-prefix and repo.clone-url. If clone-prefix is specified, all repos will get a clone url printed in the sidebar; the url is generated by clone-prefix + repo.url. Additionally, each repo can specify repo.clone-url which will override any such auto-generated url. Signed-off-by: Lars Hjemli --- ui-shared.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index 3e13c86..ece041c 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -460,6 +460,7 @@ void cgit_print_pageheader(char *title, int show_search) { static const char *default_info = "This is cgit, a fast webinterface for git repositories"; int header = 0; + char *url; html("\n"); html("