summaryrefslogtreecommitdiffabout
path: root/cgitrc
authorLars Hjemli <hjemli@gmail.com>2007-05-11 10:12:48 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-11 10:12:48 (UTC)
commitded9393b173853d2e960f9b176aeb0bc4ed35be2 (patch) (unidiff)
tree5c062b21e85ef0fe243ad900e9f4ffaf2ded0f62 /cgitrc
parentcc1dbd1b5d610bd5e626f54d310f11cf47684ea1 (diff)
downloadcgit-ded9393b173853d2e960f9b176aeb0bc4ed35be2.zip
cgit-ded9393b173853d2e960f9b176aeb0bc4ed35be2.tar.gz
cgit-ded9393b173853d2e960f9b176aeb0bc4ed35be2.tar.bz2
Add submodule links in tree listing
When a submodule occurs in a tree, generate a link to show the module/commit. The link is specified as a sprintf string in /etc/cgitrc, using parameters 'module-link' and 'repo.module-link'. This should probably be extended with repo.module-link.$path. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgitrc') (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/cgitrc b/cgitrc
index 3bae642..f217b39 100644
--- a/cgitrc
+++ b/cgitrc
@@ -44,12 +44,16 @@
44 44
45 45
46## Url loaded when clicking the logo 46## Url loaded when clicking the logo
47#logo-link=http://www.kernel.org/pub/software/scm/git/docs/ 47#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
48 48
49 49
50## Url loaded when clicking a submodule link
51#module-link=./?repo=%s&page=commit&id=%s
52
53
50## Number of chars shown of commit subject message (in log view) 54## Number of chars shown of commit subject message (in log view)
51#max-message-length=60 55#max-message-length=60
52 56
53 57
54## Root of cached output 58## Root of cached output
55#cache-root=/var/cache/cgit 59#cache-root=/var/cache/cgit
@@ -78,7 +82,8 @@
78## repository section must start with repo.url). 82## repository section must start with repo.url).
79#repo.url=cgit 83#repo.url=cgit
80#repo.name=cgit 84#repo.name=cgit
81#repo.desc=the caching cgi for git 85#repo.desc=the caching cgi for git
82#repo.path=/pub/git/cgit 86#repo.path=/pub/git/cgit
83#repo.owner=Lars Hjemli 87#repo.owner=Lars Hjemli
84#repo.snapshots=1 # override a sitewide snapshot-setting 88 #repo.snapshots=1 # override a sitewide snapshot-setting
89 #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link