6 ## For the complete overview of available configuration options,
7 ## see git.git/gitweb/gitweb.perl file beginning (git.git/gitweb/README
8 ## may miss some custom patches, in theory).
10 # Whether to include project list on the gitweb front page; 0 means yes,
11 # 1 means no list but show tag cloud if enabled (all projects still need
12 # to be scanned, unless the info is cached), 2 means no list and no tag cloud
14 our $frontpage_no_project_list = 1;
16 ## projects list cache for busy sites with many projects;
17 ## if you set this to non-zero, it will be used as the cached
18 ## index lifetime in minutes
19 our $projlist_cache_lifetime = 10;
21 ## default charset for text/plain blob
22 our $default_text_plain_charset = 'utf-8';
24 # Comment out to disable ctags
25 $feature{ctags
}{default}=["@{[url_path($Girocco::Config::webadmurl)]}/tagproj.cgi"];
27 $feature{blame
}{default}=[1];
29 $feature{'snapshot'}{'default'} = ['tgz', 'zip'];
32 ### You probably don't really want to tweak anything below.
35 our $my_uri = url_path
($Girocco::Config
::gitweburl
);
37 # https hint html inserted right after any https push URL (undef for none)
38 # e.g. "<a href="https_push_instructions.html">https push instructions</a>"
39 our $https_hint_html = undef;
40 $https_hint_html = substr(<<HINT,0,-1) if $Girocco::Config::httpspushurl;
41 <sup><a href="@{[url_path($Girocco::Config::htmlurl)]}/httpspush.html">(learn more)</a></sup>
44 ## core git executable to use
45 ## this can just be "git" if your webserver has a sensible PATH
46 our $GIT = $Girocco::Config
::git_bin
;
48 ## absolute fs-path which will be prepended to the project path
49 our $projectroot = $Girocco::Config
::reporoot
;
50 # source of projects list
51 our $projects_list = $Girocco::Config
::chroot."/etc/gitweb.list";
53 ## target of the home link on top of all pages
54 our $home_link = url_path
($Girocco::Config
::gitweburl
);
56 ## string of the home link on top of all pages
57 our $home_link_str = $Girocco::Config
::name
;
59 ## name of your site or organization to appear in page titles
60 ## replace this with something more descriptive for clearer bookmarks
61 our $site_name = $Girocco::Config
::title
;
62 ## html text to include at home page
63 our $home_text = "$Girocco::Config::webroot/indextext.html";
66 our @stylesheets = ("@{[url_path($Girocco::Config::gitwebfiles)]}/gitweb.css");
67 ## URI of GIT logo (72x27 size)
68 our $logo = "@{[url_path($Girocco::Config::gitwebfiles)]}/git-logo.png";
69 ## URI of GIT favicon, assumed to be image/png type
70 our $favicon = "@{[url_path($Girocco::Config::gitwebfiles)]}/git-favicon.png";
72 our $blamejs = "@{[url_path($Girocco::Config::gitwebfiles)]}/blame.js";
74 our $gitwebjs = "@{[url_path($Girocco::Config::gitwebfiles)]}/gitweb.js";
76 ## list of git base URLs used for URL to fetch project from,
77 ## i.e. full URL is "$git_base_url/$project"
78 our @git_base_url_list = ();
79 $Girocco::Config
::gitpullurl
and push @git_base_url_list, $Girocco::Config
::gitpullurl
;
80 $Girocco::Config
::httppullurl
and push @git_base_url_list, $Girocco::Config
::httppullurl
;
82 ## list of git base URLs used for URL to push project to,
83 ## i.e. full URL is "$git_base_push_url/$project"
84 our @git_base_push_urls = ();
85 $Girocco::Config
::pushurl
and push @git_base_push_urls, $Girocco::Config
::pushurl
;
86 $Girocco::Config
::httpspushurl
and push @git_base_push_urls, $Girocco::Config
::httpspushurl
;
88 our $cache_grpshared = 1;
89 our $cache_dir = $Girocco::Config
::chroot.'/etc';
91 $feature{pathinfo
}{default}=[1];
93 $feature{forks
}{default}=[1];
95 $feature{actions
}{default}=[
96 ('graphiclog', "@{[url_path($Girocco::Config::gitwebfiles)]}/git-browser/by-commit.html?r=%n", 'log'),
97 ('edit', "@{[url_path($Girocco::Config::webadmurl)]}/editproj.cgi?name=%n", 'refs'),
98 ('fork', "@{[url_path($Girocco::Config::webadmurl)]}/regproj.cgi?fork=%n", 'edit')