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>
这个提交包含在:
7
cgitrc
7
cgitrc
@ -47,6 +47,10 @@
|
||||
#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
|
||||
|
||||
@ -81,4 +85,5 @@
|
||||
#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
|
||||
|
在新工单中引用
屏蔽一个用户