CSS cleanup.
[viewgit.git] / inc / config.php
blobc2540197b7bcee881ee7ac4b6950874f2c950390
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 // Whether to show remote labels on shortlog
27 $conf['shortlog_remote_labels'] = false;
29 // Allow checking out projects via "git clone"
30 $conf['allow_checkout'] = true;
32 // If set, this function is used to obfuscate e-mail addresses of authors/committers
33 // The 'obfuscate_mail' function simply replaces @ with ' at ' and . with ' dot '
34 //$conf['mail_filter'] = 'obfuscate_mail';
35 //$conf['mail_filter'] = create_function('$mail', 'return str_rot13(strtoupper($mail));');
37 // Whether to use GeSHi for source highlighting
38 $conf['geshi'] = false;
40 // Path to geshi.php
41 //$conf['geshi_path'] = 'inc/geshi/geshi.php';
42 //$conf['geshi_path'] = '/usr/share/php-geshi/geshi.php'; // Path on Debian
44 // Use line numbers in geshi?
45 // Setting this to "false" disables line numbers
46 // Using a value of 0 will enable "NORMAL" geshi line numbers
47 // Using values of 1 or more will enable "FANCY" geshi line numbers
48 $conf['geshi_line_numbers'] = 5;
50 // RSS time to live (how often clients should update the feed), in minutes.
51 $conf['rss_ttl'] = 10;
53 // RSS: Maximum number of items in feed
54 $conf['rss_max_items'] = 30;
56 // RSS item format. Allowed formatting:
57 // {AUTHOR}, {AUTHOR_MAIL}, {SHORTLOG}, {LOG}, {COMMITTER}, {COMMITTER_MAIL}, {DIFFSTAT}
58 $conf['rss_item_title'] = '{SHORTLOG} ({AUTHOR})';
59 $conf['rss_item_description'] = '<pre>{LOG}</pre><b>{AUTHOR}</b> &lt;{AUTHOR_MAIL}&gt;<br /><pre>{DIFFSTAT}</pre>';
61 $conf['debug'] = false;
63 // Includes a small link to the ViewGit homepage on each page
64 $conf['ad'] = true;
66 if (!@include_once('localconfig.php')) {
67 die('ViewGit has not been configured yet, please read doc/README.');