Updated todo + tweaks.
[viewgit.git] / inc / config.php
blob4af0270d1054f0be326e6efc86378c0cf787fb59
1 <?php
2 /** @file
3 * Configuration file for viewgit.
5 * @note DO NOT EDIT THIS FILE. Create localconfig.php instead and override the settings in it.
6 */
7 $conf['projects'] = array(
8 // 'name' => array('repo' => '/path/to/repo'),
9 );
11 // If set, contains an array of globs/wildcards where to include projects.
12 // Use this if you have a lot of projects under a directory.
13 //$conf['projects_globs'] = array('/path/to/*/.git', '/var/git/*.git');
15 $conf['datetime'] = '%Y-%m-%d %H:%M:%S';
17 // Maximum length of commit message's first line to show
18 $conf['commit_message_maxlen'] = 50;
20 // Maximum number of shortlog entries to show on the summary page
21 $conf['summary_shortlog'] = 30;
23 // Maximum number of tags to show on the summary page
24 $conf['summary_tags'] = 10;
26 // Allow checking out projects via "git clone"
27 $conf['allow_checkout'] = true;
29 // If set, this function is used to obfuscate e-mail addresses of authors/committers
30 // The 'obfuscate_mail' function simply replaces @ with ' at ' and . with ' dot '
31 //$conf['mail_filter'] = 'obfuscate_mail';
32 //$conf['mail_filter'] = create_function('$mail', 'return str_rot13(strtoupper($mail));');
34 // Whether to use GeSHi for source highlighting
35 $conf['geshi'] = false;
37 // Path to geshi.php
38 //$conf['geshi_path'] = 'inc/geshi/geshi.php';
39 //$conf['geshi_path'] = '/usr/share/php-geshi/geshi.php'; // Path on Debian
41 // RSS time to live (how often clients should update the feed), in minutes.
42 $conf['rss_ttl'] = 10;
44 // RSS: Maximum number of items in feed
45 $conf['rss_max_items'] = 30;
47 // RSS item format. Allowed formatting:
48 // {AUTHOR}, {AUTHOR_MAIL}, {SHORTLOG}, {LOG}, {COMMITTER}, {COMMITTER_MAIL}, {DIFFSTAT}
49 $conf['rss_item_title'] = '{SHORTLOG} ({AUTHOR})';
50 $conf['rss_item_description'] = '<pre>{LOG}</pre><b>{AUTHOR}</b> &lt;{AUTHOR_MAIL}&gt;<br /><pre>{DIFFSTAT}</pre>';
52 $conf['debug'] = false;
54 if (!@include_once('localconfig.php')) {
55 die('ViewGit has not been configured yet, please read doc/README.');