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) (side-by-side diff)
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
@@ -38,24 +38,28 @@
## Link to css file
#css=/cgit/cgit.css
## Link to logo file
#logo=/cgit/git-logo.png
## Url loaded when clicking the logo
#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
+## Url loaded when clicking a submodule link
+#module-link=./?repo=%s&page=commit&id=%s
+
+
## Number of chars shown of commit subject message (in log view)
#max-message-length=60
## Root of cached output
#cache-root=/var/cache/cgit
##
## Time-To-Live settings: specifies how long (in minutes) different pages
## should be cached (0 for instant expiration, -1 for immortal pages)
##
@@ -72,13 +76,14 @@
## ttl for static pages (addressed by SHA-1)
#cache-static-ttl=-1
## Example repository entry. Required values are repo.url and repo.path (each
## repository section must start with repo.url).
#repo.url=cgit
#repo.name=cgit
#repo.desc=the caching cgi for git
#repo.path=/pub/git/cgit
#repo.owner=Lars Hjemli
-#repo.snapshots=1 # override a sitewide snapshot-setting
+#repo.snapshots=1 # override a sitewide snapshot-setting
+#repo.module-link=/git/%s/commit/?id=%s # override the standard module-link