summaryrefslogtreecommitdiffabout
path: root/cgitrc
authorOndrej Jirman <ondrej.jirman@zonio.net>2007-05-26 01:33:41 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-31 08:25:48 (UTC)
commit51a960a3ca6b0cade97db287a342996c3e1de48d (patch) (unidiff)
treed3360cd301c9e13d7aa9492e6628bf8d71736608 /cgitrc
parent6130231ed5e7475836a44d79d5f09e300e71a407 (diff)
downloadcgit-51a960a3ca6b0cade97db287a342996c3e1de48d.zip
cgit-51a960a3ca6b0cade97db287a342996c3e1de48d.tar.gz
cgit-51a960a3ca6b0cade97db287a342996c3e1de48d.tar.bz2
Implemented configurable HEAD shortlog on summary page.
This mirrors similiar functionality in gitweb. After clicking on project on projectlist you will immediatelly see quick summary of last N commits on HEAD. [lh: changed from HEAD to cgit_query_head] Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgitrc') (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cgitrc b/cgitrc
index 054a708..0f602e4 100644
--- a/cgitrc
+++ b/cgitrc
@@ -1,54 +1,59 @@
1## 1##
2## cgitrc: template for /etc/cgitrc 2## cgitrc: template for /etc/cgitrc
3## 3##
4 4
5 5
6## Uncomment and set to 1 to deactivate caching of generated pages. Mostly 6## Uncomment and set to 1 to deactivate caching of generated pages. Mostly
7## usefull for testing. 7## usefull for testing.
8#nocache=0 8#nocache=0
9 9
10 10
11## Enable/disable snapshots by default. This can be overridden per repo 11## Enable/disable snapshots by default. This can be overridden per repo
12#snapshots=0 12#snapshots=0
13 13
14 14
15## Enable/disable display of 'number of files changed' in log view 15## Enable/disable display of 'number of files changed' in log view
16#enable-log-filecount=0 16#enable-log-filecount=0
17 17
18 18
19## Enable/disable display of 'number of lines changed' in log view 19## Enable/disable display of 'number of lines changed' in log view
20#enable-log-linecount=0 20#enable-log-linecount=0
21 21
22 22
23## Enable/disable display of HEAD shortlog in summary view. Set it to maximum
24## number of commits that should be displayed
25#summary-log=0
26
27
23## Specify a root for virtual urls. This makes cgit generate urls like 28## Specify a root for virtual urls. This makes cgit generate urls like
24## 29##
25## http://localhost/git/repo/log/?id=master 30## http://localhost/git/repo/log/?id=master
26## 31##
27## instead of 32## instead of
28## 33##
29## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master 34## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
30## 35##
31## For this to work with apache, rewrite rules must be added to httpd.conf, 36## For this to work with apache, rewrite rules must be added to httpd.conf,
32## possibly looking something like this: 37## possibly looking something like this:
33## 38##
34## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA] 39## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA]
35## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA] 40## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA]
36## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA] 41## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA]
37## 42##
38## This setting is disabled by default. 43## This setting is disabled by default.
39#virtual-root=/git 44#virtual-root=/git
40 45
41 46
42## Set the title printed on the root page 47## Set the title printed on the root page
43#root-title=Git repository browser 48#root-title=Git repository browser
44 49
45 50
46## Link to css file 51## Link to css file
47#css=/cgit/cgit.css 52#css=/cgit/cgit.css
48 53
49 54
50## Link to logo file 55## Link to logo file
51#logo=/cgit/git-logo.png 56#logo=/cgit/git-logo.png
52 57
53 58
54## Url loaded when clicking the logo 59## Url loaded when clicking the logo