Marian Harbach | ebeb154 | 2019-12-13 10:42:46 +0100 | [diff] [blame] | 1 | :linkattrs: |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 2 | == Gitweb Integration |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 3 | |
Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 4 | Gerrit Code Review can manage and generate hyperlinks to gitweb, |
| 5 | allowing users to jump from Gerrit content to the same information, |
| 6 | but shown by gitweb. |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 7 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 8 | === Internal/Managed gitweb |
Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 9 | |
| 10 | In the internal configuration, Gerrit inspects the request, enforces |
| 11 | its project level access controls, and directly executes `gitweb.cgi` |
| 12 | if the user is authorized to view the page. |
| 13 | |
| 14 | To enable the internal configuration, set |
| 15 | link:config-gerrit.html#gitweb.cgi[gitweb.cgi] with the path of the |
| 16 | installed CGI. This defaults to `/usr/lib/cgi-bin/gitweb.cgi`, |
| 17 | which is a common installation path for the 'gitweb' package on |
| 18 | Linux distributions. |
| 19 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 20 | ---- |
David Pursehouse | f7c63f6 | 2018-03-16 09:47:32 +0900 | [diff] [blame] | 21 | git config -f $site_path/etc/gerrit.config gitweb.type gitweb |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 22 | git config -f $site_path/etc/gerrit.config gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi |
| 23 | git config -f $site_path/etc/gerrit.config --unset gitweb.url |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 24 | ---- |
Piotr Sikora | 6a9d47e | 2011-02-27 21:22:32 +0000 | [diff] [blame] | 25 | |
| 26 | Alternatively, if Gerrit is served behind reverse proxy, it can |
| 27 | generate different URLs for gitweb's links (they need to be |
| 28 | rewritten to `<gerrit>/gitweb?args` on the web server). This allows |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 29 | for serving gitweb under a different URL than the Gerrit instance. |
Piotr Sikora | 6a9d47e | 2011-02-27 21:22:32 +0000 | [diff] [blame] | 30 | To enable this feature, set both: `gitweb.cgi` and `gitweb.url`. |
| 31 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 32 | ---- |
David Pursehouse | f7c63f6 | 2018-03-16 09:47:32 +0900 | [diff] [blame] | 33 | git config -f $site_path/etc/gerrit.config gitweb.type gitweb |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 34 | git config -f $site_path/etc/gerrit.config gitweb.cgi /usr/lib/cgi-bin/gitweb.cgi |
| 35 | git config -f $site_path/etc/gerrit.config gitweb.url /pretty/path/to/gitweb |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 36 | ---- |
Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 37 | |
| 38 | After updating `'$site_path'/etc/gerrit.config`, the Gerrit server must |
| 39 | be restarted and clients must reload the host page to see the change. |
| 40 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 41 | ==== Configuration |
Shawn O. Pearce | 544220c | 2010-03-13 17:39:35 -0800 | [diff] [blame] | 42 | |
| 43 | Most of the gitweb configuration file is handled automatically |
| 44 | by Gerrit Code Review. Site specific overrides can be placed in |
| 45 | `'$site_path'/etc/gitweb_config.perl`, as this file is loaded as |
| 46 | part of the generated configuration file. |
| 47 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 48 | ==== Logo and CSS |
Shawn O. Pearce | a57697b | 2010-03-13 18:23:47 -0800 | [diff] [blame] | 49 | |
| 50 | If the package-manager installed CGI (`/usr/lib/cgi-bin/gitweb.cgi`) |
| 51 | is being used, the stock CSS and logo files will be served from |
| 52 | either `/usr/share/gitweb` or `/var/www`. |
| 53 | |
| 54 | Otherwise, Gerrit expects `gitweb.css` and `git-logo.png` to be found |
| 55 | in the same directory as the CGI script itself. This matches with |
| 56 | the default source code distribution, and most custom installations. |
| 57 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 58 | ==== Access Control |
Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 59 | |
| 60 | Access controls for internally managed gitweb page views are enforced |
| 61 | using the standard project READ +1 permission. |
| 62 | |
Warren Turkal | f8101aa | 2013-12-11 15:56:53 -0800 | [diff] [blame] | 63 | Also, in order for a user to be able to view any gitweb information for a |
David Pursehouse | 659860f | 2013-12-16 14:50:04 +0900 | [diff] [blame] | 64 | project, the user must be able to read all references (including |
Warren Turkal | f8101aa | 2013-12-11 15:56:53 -0800 | [diff] [blame] | 65 | refs/meta/config, refs/meta/dashboards/*, etc.). If you have exclusive read |
| 66 | permissions for any references, make sure to include all parties that should be |
| 67 | able to read the gitweb info for any of the branches in that project. |
| 68 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 69 | === External/Unmanaged gitweb |
Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 70 | |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 71 | For the external configuration, gitweb runs under the control of an |
| 72 | external web server, and Gerrit access controls are not enforced. Gerrit |
Dave Borowitz | a3d6788 | 2015-06-05 15:22:23 -0700 | [diff] [blame] | 73 | provides configuration parameters for integration with gitweb. |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 74 | |
| 75 | [[linuxGitWeb]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 76 | ==== Linux Installation |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 77 | |
Dave Borowitz | a3d6788 | 2015-06-05 15:22:23 -0700 | [diff] [blame] | 78 | ===== Install Gitweb |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 79 | |
| 80 | On Ubuntu: |
| 81 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 82 | ---- |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 83 | sudo apt-get install gitweb |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 84 | ---- |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 85 | |
| 86 | With Yum: |
| 87 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 88 | ---- |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 89 | yum install gitweb |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 90 | ---- |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 91 | |
Dave Borowitz | a3d6788 | 2015-06-05 15:22:23 -0700 | [diff] [blame] | 92 | ===== Configure Gitweb |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 93 | |
| 94 | |
| 95 | Update `/etc/gitweb.conf`, add the public GIT repositories: |
| 96 | |
| 97 | ---- |
| 98 | $projectroot = "/var/www/repo/"; |
| 99 | |
| 100 | # directory to use for temp files |
| 101 | $git_temp = "/tmp"; |
| 102 | |
| 103 | # target of the home link on top of all pages |
| 104 | #$home_link = $my_uri || "/"; |
| 105 | |
| 106 | # html text to include at home page |
| 107 | $home_text = "indextext.html"; |
| 108 | |
| 109 | # file with project list; by default, simply scan the projectroot dir. |
| 110 | $projects_list = $projectroot; |
| 111 | |
| 112 | # stylesheet to use |
| 113 | # I took off the prefix / of the following path to put these files inside gitweb directory directly |
| 114 | $stylesheet = "gitweb.css"; |
| 115 | |
| 116 | # logo to use |
| 117 | $logo = "git-logo.png"; |
| 118 | |
Christian Aistleitner | 21b3b3a | 2013-05-09 22:32:45 +0200 | [diff] [blame] | 119 | # the favicon |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 120 | $favicon = "git-favicon.png"; |
| 121 | ---- |
| 122 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 123 | ==== Configure & Restart Apache Web Server |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 124 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 125 | ===== Configure Apache |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 126 | |
| 127 | |
| 128 | Link gitweb to `/var/www/gitweb`, check `/etc/gitweb.conf` if unsure of paths: |
| 129 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 130 | ---- |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 131 | sudo ln -s /usr/share/gitweb /var/www/gitweb |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 132 | ---- |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 133 | |
| 134 | Add the gitweb directory to the Apache configuration by creating a "gitweb" |
| 135 | file inside the Apache conf.d directory: |
| 136 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 137 | ---- |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 138 | touch /etc/apache/conf.d/gitweb |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 139 | ---- |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 140 | |
| 141 | Add the following to /etc/apache/conf.d/gitweb: |
| 142 | |
| 143 | ---- |
| 144 | Alias /gitweb /var/www/gitweb |
| 145 | |
| 146 | Options Indexes FollowSymlinks ExecCGI |
| 147 | DirectoryIndex /cgi-bin/gitweb.cgi |
| 148 | AllowOverride None |
| 149 | ---- |
| 150 | |
Michael Ochmann | 8129ece | 2016-07-08 11:25:25 +0200 | [diff] [blame] | 151 | [NOTE] |
| 152 | This may have already been added by yum/apt-get. If that's the case, leave as |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 153 | is. |
| 154 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 155 | ===== Restart the Apache Web Server |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 156 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 157 | ---- |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 158 | sudo /etc/init.d/apache2 restart |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 159 | ---- |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 160 | |
| 161 | Now you should be able to view your repository projects online: |
| 162 | |
| 163 | link:http://localhost/gitweb[http://localhost/gitweb] |
| 164 | |
| 165 | [[WindowsGitWeb]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 166 | ==== Windows Installation |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 167 | |
Dave Borowitz | a3d6788 | 2015-06-05 15:22:23 -0700 | [diff] [blame] | 168 | Instructions are available for installing the gitweb module distributed with |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 169 | MsysGit: |
| 170 | |
Marian Harbach | 3425337 | 2019-12-10 18:01:31 +0100 | [diff] [blame] | 171 | link:https://github.com/msysgit/msysgit/wiki/GitWeb[GitWeb,role=external,window=_blank] |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 172 | |
| 173 | If you don't have Apache installed, you can download the appropriate build for |
| 174 | Windows from link:http://www.apachelounge.com/download[apachelounge.org]. |
| 175 | |
| 176 | After you have installed Apache, you will want to create a link:http://httpd.apache.org/docs/2.0/platform/windows.html#winsvc[new service user |
Marian Harbach | 3425337 | 2019-12-10 18:01:31 +0100 | [diff] [blame] | 177 | account,role=external,window=_blank] to use with Apache. |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 178 | |
| 179 | If you're still having difficulty setting up permissions, you may find this |
| 180 | tech note useful for configuring Apache Service to run under another account. |
Marian Harbach | 3425337 | 2019-12-10 18:01:31 +0100 | [diff] [blame] | 181 | You must grant the new account link:http://technet.microsoft.com/en-us/library/cc794944(WS.10).aspx["run as service",role=external,window=_blank] permission: |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 182 | |
Dave Borowitz | a3d6788 | 2015-06-05 15:22:23 -0700 | [diff] [blame] | 183 | The gitweb version in msysgit is missing several important and required |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 184 | perl modules, including CGI.pm. The perl included with the msysgit distro 1.7.8 |
Marian Harbach | 3425337 | 2019-12-10 18:01:31 +0100 | [diff] [blame] | 185 | is broken.. The link:http://groups.google.com/group/msysgit/browse_thread/thread/ba3501f1f0ed95af[unicore folder is missing along with utf8_heavy.pl and CGI.pm,role=external,window=_blank]. You can |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 186 | verify by checking for perl modules. From an msys console, execute the |
| 187 | following to check: |
| 188 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 189 | ---- |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 190 | perl -mCGI -mEncode -mFcntl -mFile::Find -mFile::Basename -e "" |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 191 | ---- |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 192 | |
| 193 | You may encounter the following exception: |
| 194 | |
| 195 | ---- |
| 196 | $ perl -mCGI -mEncode -mFcntl -mFile::Find -mFile::Basename -e "" |
| 197 | Can't locate CGI.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/msys |
| 198 | /usr/lib/p erl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/msys |
| 199 | /usr/lib/perl5/site_perl/5.8.8 /u sr/lib/perl5/site_perl .). BEGIN |
| 200 | failed--compilation aborted. |
| 201 | ---- |
| 202 | |
| 203 | If you're missing CGI.pm, you'll have to deploy the module to the msys |
| 204 | environment: You will have to retrieve them from the 5.8.8 distro on : |
| 205 | |
Marian Harbach | 3425337 | 2019-12-10 18:01:31 +0100 | [diff] [blame] | 206 | http://strawberryperl.com/releases.html[role=external,window=_blank] |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 207 | |
| 208 | File: strawberry-perl-5.8.8.3.zip |
| 209 | |
| 210 | contents: `bin/` `lib/` `site/` |
| 211 | |
| 212 | copy the contents of lib into `msysgit/lib/perl5/5.8.8` and overwrite existing files. |
| 213 | |
Dave Borowitz | a3d6788 | 2015-06-05 15:22:23 -0700 | [diff] [blame] | 214 | ==== Enable Gitweb Integration |
Shawn O. Pearce | 618dae2 | 2010-03-12 19:07:43 -0800 | [diff] [blame] | 215 | |
| 216 | To enable the external gitweb integration, set |
| 217 | link:config-gerrit.html#gitweb.url[gitweb.url] with the URL of your |
| 218 | gitweb CGI. |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 219 | |
Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame] | 220 | The CGI's `$projectroot` should be the same directory as |
| 221 | gerrit.basePath, or a fairly current replica. If a replica is |
Jonathan Nieder | 5758f18 | 2015-03-30 11:28:55 -0700 | [diff] [blame] | 222 | being used, ensure it uses a full mirror, so the `+refs/changes/*+` |
Shawn O. Pearce | 9743d0b | 2009-06-01 10:10:06 -0700 | [diff] [blame] | 223 | namespace is available. |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 224 | |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 225 | ---- |
David Pursehouse | f7c63f6 | 2018-03-16 09:47:32 +0900 | [diff] [blame] | 226 | git config -f $site_path/etc/gerrit.config gitweb.type gitweb |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 227 | git config -f $site_path/etc/gerrit.config --unset gitweb.cgi |
| 228 | git config -f $site_path/etc/gerrit.config gitweb.url https://gitweb.corporation.com |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 229 | ---- |
| 230 | |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 231 | If you're not following the traditional `\{projectName\}.git` project naming conventions, |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 232 | you will want to customize Gerrit to read them. Add the following: |
| 233 | |
| 234 | ---- |
David Pursehouse | 312e973 | 2018-03-16 09:45:24 +0900 | [diff] [blame] | 235 | git config -f $site_path/etc/gerrit.config gitweb.type custom |
| 236 | git config -f $site_path/etc/gerrit.config gitweb.project ?p=\${project}\;a=summary |
| 237 | git config -f $site_path/etc/gerrit.config gitweb.revision ?p=\${project}\;a=commit\;h=\${commit} |
| 238 | git config -f $site_path/etc/gerrit.config gitweb.branch ?p=\${project}\;a=shortlog\;h=\${branch} |
| 239 | git config -f $site_path/etc/gerrit.config gitweb.roottree ?p=\${project}\;a=tree\;hb=\${commit} |
| 240 | git config -f $site_path/etc/gerrit.config gitweb.file ?p=\${project}\;hb=\${commit}\;f=\${file} |
| 241 | git config -f $site_path/etc/gerrit.config gitweb.filehistory ?p=\${project}\;a=history\;hb=\${branch}\;f=\${file} |
jhuntley | d7f5371 | 2012-08-01 14:19:46 -0400 | [diff] [blame] | 242 | ---- |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 243 | |
Shawn O. Pearce | c5fed82 | 2009-11-17 16:10:10 -0800 | [diff] [blame] | 244 | After updating `'$site_path'/etc/gerrit.config`, the Gerrit server must |
Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 245 | be restarted and clients must reload the host page to see the change. |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 246 | |
David Pursehouse | 8264ef7 | 2013-10-18 17:50:54 +0900 | [diff] [blame] | 247 | Note that when using a custom gitweb configuration, values must be |
Colby Ranger | 79d4ebe | 2013-12-16 14:19:18 -0800 | [diff] [blame] | 248 | specified for all of the `project`, `revision`, `branch`, `roottree`, |
| 249 | `file`, and `filehistory` settings, otherwise the configuration will |
| 250 | not be used. |
David Pursehouse | 8264ef7 | 2013-10-18 17:50:54 +0900 | [diff] [blame] | 251 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 252 | ===== Access Control |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 253 | |
| 254 | Gitweb access controls can be implemented using standard web server |
| 255 | access controls. This isn't typically integrated with Gerrit's own |
| 256 | access controls. Caution must be taken to ensure the controls are |
| 257 | consistent if access needs to be restricted. |
| 258 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 259 | ===== Caching Gitweb |
Shawn O. Pearce | d2b73db | 2009-01-09 11:55:47 -0800 | [diff] [blame] | 260 | |
| 261 | If your repository set is large and you are expecting a lot |
| 262 | of users, you may want to look at the caching forks used by |
| 263 | high-traffic sites like kernel.org or repo.or.cz. |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 264 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 265 | === Alternatives to gitweb |
Shane Mc Cormack | 27868a4 | 2009-12-28 04:49:39 +0000 | [diff] [blame] | 266 | There are other alternatives to gitweb that can also be used with |
| 267 | Gerrit, such as cgit. |
| 268 | |
| 269 | cgit can be used by specifying `gitweb.type` to be 'cgit'. |
| 270 | |
| 271 | It is also possible to define custom patterns. |
| 272 | |
Fredrik Luthander | a6bb951 | 2014-03-24 18:59:45 -0700 | [diff] [blame] | 273 | === SEE ALSO |
Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 274 | |
Shawn O. Pearce | 8efb2a7 | 2009-08-18 19:45:33 -0700 | [diff] [blame] | 275 | * link:config-gerrit.html#gitweb[Section gitweb] |
Marian Harbach | 3425337 | 2019-12-10 18:01:31 +0100 | [diff] [blame] | 276 | * link:http://git.zx2c4.com/cgit/about/[cgit,role=external,window=_blank] |
Shawn O. Pearce | d7ba11f | 2009-06-01 09:35:41 -0700 | [diff] [blame] | 277 | |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 278 | GERRIT |
| 279 | ------ |
| 280 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 281 | |
| 282 | SEARCHBOX |
| 283 | --------- |