jobs/shlib.sh: Fix the git alias
[girocco/testingthisout.git] / gitweb / gitweb_config.perl
blob3fa8c2bdf957ad1d94c7770b1d80ad5445d7d760
1 # Pull Girocco config
2 use lib ".";
3 use Girocco::Config;
5 # Base web path
6 our $my_uri = $Girocco::Config::gitweburl;
8 ## core git executable to use
9 ## this can just be "git" if your webserver has a sensible PATH
10 our $GIT = $Girocco::Config::git_bin;
12 ## absolute fs-path which will be prepended to the project path
13 our $projectroot = $Girocco::Config::reporoot;
15 ## fs traversing limit for getting project list
16 ## the number is relative to the projectroot
17 #our $project_maxdepth = "2007";
19 ## target of the home link on top of all pages
20 our $home_link = $Girocco::Config::gitweburl;
22 ## string of the home link on top of all pages
23 our $home_link_str = $Girocco::Config::name;
25 ## name of your site or organization to appear in page titles
26 ## replace this with something more descriptive for clearer bookmarks
27 our $site_name = $Girocco::Config::title;
28 ## filename of html text to include at top of each page
29 #our $site_header = "";
30 ## html text to include at home page
31 #our $home_text = "indextext.html";
32 ## filename of html text to include at bottom of each page
33 #our $site_footer = "";
35 ## URI of stylesheets
36 our @stylesheets = ("$Girocco::Config::gitwebfiles/gitweb.css");
37 ## URI of a single stylesheet, which can be overridden in GITWEB_CONFIG.
38 #our $stylesheet = undef;
39 ## URI of GIT logo (72x27 size)
40 our $logo = "$Girocco::Config::gitwebfiles/git-logo.png";
41 ## URI of GIT favicon, assumed to be image/png type
42 our $favicon = "$Girocco::Config::gitwebfiles/git-favicon.png";
43 ## URI of blame.js
44 our $blamejs = "$Girocco::Config::gitwebfiles/blame.js";
45 ## URI of gitweb.js
46 our $gitwebjs = "$Girocco::Config::gitwebfiles/gitweb.js";
48 ## URI and label (title) of GIT logo link
49 ##our $logo_url = "http://www.kernel.org/pub/software/scm/git/docs/";
50 ##our $logo_label = "git documentation";
51 #our $logo_url = "http://git.or.cz/";
52 #our $logo_label = "git homepage";
54 ## source of projects list
55 #our $projects_list = "";
57 ## the width (in characters) of the projects list "Description" column
58 #our $projects_list_description_width = 25;
60 ## default order of projects list
61 ## valid values are none, project, descr, owner, and age
62 #our $default_projects_order = "project";
64 ## show repository only if this file exists
65 ## (only effective if this variable evaluates to true)
66 #our $export_ok = "";
68 ## only allow viewing of repositories also shown on the overview page
69 #our $strict_export = "";
71 ## list of git base URLs used for URL to where fetch project from,
72 ## i.e. full URL is "$git_base_url/$project"
73 our @git_base_url_list = ();
74 $Girocco::Config::gitpullurl and push @git_base_url_list, $Girocco::Config::gitpullurl;
75 $Girocco::Config::httppullurl and push @git_base_url_list, $Girocco::Config::httppullurl;
77 ## default blob_plain mimetype and default charset for text/plain blob
78 #our $default_blob_plain_mimetype = 'text/plain';
79 #our $default_text_plain_charset = undef;
81 ## file to use for guessing MIME types before trying /etc/mime.types
82 ## (relative to the current git repository)
83 #our $mimetypes_file = undef;
85 ## assume this charset if line contains non-UTF-8 characters;
86 ## it should be valid encoding (see Encoding::Supported(3pm) for list),
87 ## for which encoding all byte sequences are valid, for example
88 ## 'iso-8859-1' aka 'latin1' (it is decoded without checking, so it
89 ## could be even 'utf-8' for the old behavior)
90 #our $fallback_encoding = 'latin1';
92 ## rename detection options for git-diff and git-diff-tree
93 ## - default is '-M', with the cost proportional to
94 ## (number of removed files) * (number of new files).
95 ## - more costly is '-C' (which implies '-M'), with the cost proportional to
96 ## (number of changed files + number of removed files) * (number of new files)
97 ## - even more costly is '-C', '--find-copies-harder' with cost
98 ## (number of files in the original tree) * (number of new files)
99 ## - one might want to include '-B' option, e.g. '-B', '-M'
100 #our @diff_opts = ('-M'); # taken from git_commit
102 ## projects list cache for busy sites with many projects;
103 ## if you set this to non-zero, it will be used as the cached
104 ## index lifetime in minutes
106 ## the cached list version is stored in $cache_dir/$cache_name and can
107 ## be tweaked by other scripts running with the same uid as gitweb -
108 ## use this ONLY at secure installations; only single gitweb project
109 ## root per system is supported, unless you tweak configuration!
110 #our $projlist_cache_lifetime = 0; # in minutes
111 our $projlist_cache_lifetime = 10;
112 ## FHS compliant $cache_dir would be "/var/cache/gitweb"
113 #our $cache_dir =
114 # (defined $ENV{'TMPDIR'} ? $ENV{'TMPDIR'} : '/tmp').'/gitweb';
115 #our $projlist_cache_name = 'gitweb.index.cache';
117 ## information about snapshot formats that gitweb is capable of serving
118 #our %known_snapshot_formats = (
119 # # name => {
120 # # 'display' => display name,
121 # # 'type' => mime type,
122 # # 'suffix' => filename suffix,
123 # # 'format' => --format for git-archive,
124 # # 'compressor' => [compressor command and arguments]
125 # # (array reference, optional)}
127 # 'tgz' => {
128 # 'display' => 'tar.gz',
129 # 'type' => 'application/x-gzip',
130 # 'suffix' => '.tar.gz',
131 # 'format' => 'tar',
132 # 'compressor' => ['gzip']},
134 # 'tbz2' => {
135 # 'display' => 'tar.bz2',
136 # 'type' => 'application/x-bzip2',
137 # 'suffix' => '.tar.bz2',
138 # 'format' => 'tar',
139 # 'compressor' => ['bzip2']},
141 # 'zip' => {
142 # 'display' => 'zip',
143 # 'type' => 'application/x-zip',
144 # 'suffix' => '.zip',
145 # 'format' => 'zip'},
148 ## Aliases so we understand old gitweb.snapshot values in repository
149 ## configuration.
150 #our %known_snapshot_format_aliases = (
151 # 'gzip' => 'tgz',
152 # 'bzip2' => 'tbz2',
154 # # backward compatibility: legacy gitweb config support
155 # 'x-gzip' => undef, 'gz' => undef,
156 # 'x-bzip2' => undef, 'bz2' => undef,
157 # 'x-zip' => undef, '' => undef,
160 ## You define site-wide feature defaults here; override them with
161 ## $GITWEB_CONFIG as necessary.
162 #our %feature = (
163 # # feature => {
164 # # 'sub' => feature-sub (subroutine),
165 # # 'override' => allow-override (boolean),
166 # # 'default' => [ default options...] (array reference)}
168 # # if feature is overridable (it means that allow-override has true value),
169 # # then feature-sub will be called with default options as parameters;
170 # # return value of feature-sub indicates if to enable specified feature
172 # # if there is no 'sub' key (no feature-sub), then feature cannot be
173 # # overriden
175 # # use gitweb_check_feature(<feature>) to check if <feature> is enabled
177 # # Enable the 'blame' blob view, showing the last commit that modified
178 # # each line in the file. This can be very CPU-intensive.
180 # # To enable system wide have in $GITWEB_CONFIG
181 # # $feature{'blame'}{'default'} = [1];
182 # # To have project specific config enable override in $GITWEB_CONFIG
183 # # $feature{'blame'}{'override'} = 1;
184 # # and in project config gitweb.blame = 0|1;
185 # 'blame' => {
186 # 'sub' => \&feature_blame,
187 # 'override' => 0,
188 # 'default' => [0]},
189 $feature{blame}{default}=[1];
191 # # Enable the 'snapshot' link, providing a compressed archive of any
192 # # tree. This can potentially generate high traffic if you have large
193 # # project.
195 # # Value is a list of formats defined in %known_snapshot_formats that
196 # # you wish to offer.
197 # # To disable system wide have in $GITWEB_CONFIG
198 # # $feature{'snapshot'}{'default'} = [];
199 # # To have project specific config enable override in $GITWEB_CONFIG
200 # # $feature{'snapshot'}{'override'} = 1;
201 # # and in project config, a comma-separated list of formats or "none"
202 # # to disable. Example: gitweb.snapshot = tbz2,zip;
203 # 'snapshot' => {
204 # 'sub' => \&feature_snapshot,
205 # 'override' => 0,
206 # 'default' => ['tgz']},
208 # # Enable text search, which will list the commits which match author,
209 # # committer or commit text to a given string. Enabled by default.
210 # # Project specific override is not supported.
211 # 'search' => {
212 # 'override' => 0,
213 # 'default' => [1]},
215 # # Enable grep search, which will list the files in currently selected
216 # # tree containing the given string. Enabled by default. This can be
217 # # potentially CPU-intensive, of course.
219 # # To enable system wide have in $GITWEB_CONFIG
220 # # $feature{'grep'}{'default'} = [1];
221 # # To have project specific config enable override in $GITWEB_CONFIG
222 # # $feature{'grep'}{'override'} = 1;
223 # # and in project config gitweb.grep = 0|1;
224 # 'grep' => {
225 # 'override' => 0,
226 # 'default' => [1]},
228 # # Enable the pickaxe search, which will list the commits that modified
229 # # a given string in a file. This can be practical and quite faster
230 # # alternative to 'blame', but still potentially CPU-intensive.
232 # # To enable system wide have in $GITWEB_CONFIG
233 # # $feature{'pickaxe'}{'default'} = [1];
234 # # To have project specific config enable override in $GITWEB_CONFIG
235 # # $feature{'pickaxe'}{'override'} = 1;
236 # # and in project config gitweb.pickaxe = 0|1;
237 # 'pickaxe' => {
238 # 'sub' => \&feature_pickaxe,
239 # 'override' => 0,
240 # 'default' => [1]},
242 # # Make gitweb use an alternative format of the URLs which can be
243 # # more readable and natural-looking: project name is embedded
244 # # directly in the path and the query string contains other
245 # # auxiliary information. All gitweb installations recognize
246 # # URL in either format; this configures in which formats gitweb
247 # # generates links.
249 # # To enable system wide have in $GITWEB_CONFIG
250 # # $feature{'pathinfo'}{'default'} = [1];
251 # # Project specific override is not supported.
253 # # Note that you will need to change the default location of CSS,
254 # # favicon, logo and possibly other files to an absolute URL. Also,
255 # # if gitweb.cgi serves as your indexfile, you will need to force
256 # # $my_uri to contain the script name in your $GITWEB_CONFIG.
257 # 'pathinfo' => {
258 # 'override' => 0,
259 # 'default' => [0]},
260 $feature{pathinfo}{default}=[1];
262 # # Make gitweb consider projects in project root subdirectories
263 # # to be forks of existing projects. Given project $projname.git,
264 # # projects matching $projname/*.git will not be shown in the main
265 # # projects list, instead a '+' mark will be added to $projname
266 # # there and a 'forks' view will be enabled for the project, listing
267 # # all the forks. If project list is taken from a file, forks have
268 # # to be listed after the main project.
270 # # To enable system wide have in $GITWEB_CONFIG
271 # # $feature{'forks'}{'default'} = [1];
272 # # Project specific override is not supported.
273 # 'forks' => {
274 # 'override' => 0,
275 # 'default' => [0]},
276 $feature{forks}{default}=[1];