about summary refs log tree commit diff stats
path: root/cgitrc
diff options
context:
space:
mode:
authorLars Hjemli2007-12-03 01:49:38 +0100
committerLars Hjemli2007-12-03 01:49:38 +0100
commitafcdd083dab81afef744e261d81a452698188c30 (patch)
tree0ca43a6b87567af70c802a25124702c7c7891c9a /cgitrc
parentMerge branch 'stable' (diff)
downloadcgit-afcdd083dab81afef744e261d81a452698188c30.tar.gz
cgit-afcdd083dab81afef744e261d81a452698188c30.zip
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 <hjemli@gmail.com>
Diffstat (limited to 'cgitrc')
-rw-r--r--cgitrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/cgitrc b/cgitrc index 8c616e0..ce0c01b 100644 --- a/cgitrc +++ b/cgitrc
@@ -116,6 +116,11 @@
116#module-link=./?repo=%s&page=commit&id=%s 116#module-link=./?repo=%s&page=commit&id=%s
117 117
118 118
119## Shared prefix which, when combined with repo url, becomes the url used
120## to clone the repo
121#clone-prefix=
122
123
119## Number of chars shown of repo description (in repolist view) 124## Number of chars shown of repo description (in repolist view)
120#max-repodesc-length=60 125#max-repodesc-length=60
121 126
@@ -167,12 +172,14 @@
167#repo.enable-log-linecount=0 ## override the default linecount setting 172#repo.enable-log-linecount=0 ## override the default linecount setting
168#repo.module-link=/git/%s/commit/?id=%s ## override the standard module-link 173#repo.module-link=/git/%s/commit/?id=%s ## override the standard module-link
169#repo.readme=info/web/readme ## specify a file to include on summary page 174#repo.readme=info/web/readme ## specify a file to include on summary page
175#repo.clone-url=git://hjemli.net/pub/git/cgit
170 176
171## Additional repositories grouped under "mirrors" 177## Additional repositories grouped under "mirrors"
172#repo.group=mirrors 178#repo.group=mirrors
173 179
174#repo.url=git 180#repo.url=git
175#repo.path=/pub/git/git 181#repo.path=/pub/git/git
182#repo.clone-url=git://hjemli.net/pub/git/git
176# 183#
177#repo.url=linux 184#repo.url=linux
178#repo.path=/pub/git/linux 185#repo.path=/pub/git/linux