Remember what type of search is active in the form.
[viewgit.git] / inc / config.php
blobf551e3f4236f2a94d001bcdb52f21382543a1e86
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 // Where git is. Default is to search from PATH, but you can use an absolute
12 // path as well.
13 $conf['git'] = 'git';
15 // If set, contains an array of globs/wildcards where to include projects.
16 // Use this if you have a lot of projects under a directory.
17 //$conf['projects_globs'] = array('/path/to/*/.git', '/var/git/*.git');
19 $conf['datetime'] = '%Y-%m-%d %H:%M';
21 // More complete format for commit page
22 $conf['datetime_full'] = '%Y-%m-%d %H:%M:%S';
24 // Maximum length of commit message's first line to show
25 $conf['commit_message_maxlen'] = 50;
27 // Maximum number of shortlog entries to show on the summary page
28 $conf['summary_shortlog'] = 30;
30 // Maximum number of tags to show on the summary page
31 $conf['summary_tags'] = 10;
33 // Whether to show remote labels on shortlog
34 $conf['shortlog_remote_labels'] = false;
36 // Allow checking out projects via "git clone"
37 $conf['allow_checkout'] = true;
39 // If set, this function is used to obfuscate e-mail addresses of authors/committers
40 // The 'obfuscate_mail' function simply replaces @ with ' at ' and . with ' dot '
41 //$conf['mail_filter'] = 'obfuscate_mail';
42 //$conf['mail_filter'] = create_function('$mail', 'return str_rot13(strtoupper($mail));');
44 // Whether to use GeSHi for source highlighting
45 $conf['geshi'] = false;
47 // Path to geshi.php
48 //$conf['geshi_path'] = 'inc/geshi/geshi.php';
49 //$conf['geshi_path'] = '/usr/share/php-geshi/geshi.php'; // Path on Debian
51 // Use line numbers in geshi?
52 // Setting this to "false" disables line numbers
53 // Using a value of 0 will enable "NORMAL" geshi line numbers
54 // Using values of 1 or more will enable "FANCY" geshi line numbers
55 $conf['geshi_line_numbers'] = 5;
57 // RSS time to live (how often clients should update the feed), in minutes.
58 $conf['rss_ttl'] = 10;
60 // RSS: Maximum number of items in feed
61 $conf['rss_max_items'] = 30;
63 // RSS item format. Allowed formatting:
64 // {AUTHOR}, {AUTHOR_MAIL}, {SHORTLOG}, {LOG}, {COMMITTER}, {COMMITTER_MAIL}, {DIFFSTAT}
65 $conf['rss_item_title'] = '{SHORTLOG} ({AUTHOR})';
66 $conf['rss_item_description'] = '<pre>{LOG}</pre><b>{AUTHOR}</b> &lt;{AUTHOR_MAIL}&gt;<br /><pre>{DIFFSTAT}</pre>';
68 $conf['debug'] = false;
70 // Includes a small link to the ViewGit homepage on each page
71 $conf['ad'] = true;
73 if (!@include_once('localconfig.php')) {
74 die('ViewGit has not been configured yet, please read doc/README.');