@@ -29,40 +29,40 @@ Build time configuration
2929See also "How to configure gitweb for your local system" in README
3030file for gitweb (in gitweb/README).
3131
32- - There are many configuration variables which affects building of
32+ - There are many configuration variables which affect building of
3333 gitweb.cgi; see "default configuration for gitweb" section in main
3434 (top dir) Makefile, and instructions for building gitweb/gitweb.cgi
3535 target.
3636
37- One of most important is where to find git wrapper binary. Gitweb
38- tries to find git wrapper at $(bindir)/git, so you have to set $bindir
37+ One of the most important is where to find the git wrapper binary. Gitweb
38+ tries to find the git wrapper at $(bindir)/git, so you have to set $bindir
3939 when building gitweb.cgi, or $prefix from which $bindir is derived. If
40- you build and install gitweb together with the rest of git suite,
40+ you build and install gitweb together with the rest of the git suite,
4141 there should be no problems. Otherwise, if git was for example
4242 installed from a binary package, you have to set $prefix (or $bindir)
4343 accordingly.
4444
4545- Another important issue is where are git repositories you want to make
46- available to gitweb. By default gitweb search for repositories under
46+ available to gitweb. By default gitweb searches for repositories under
4747 /pub/git; if you want to have projects somewhere else, like /home/git,
4848 use GITWEB_PROJECTROOT build configuration variable.
4949
5050 By default all git repositories under projectroot are visible and
51- available to gitweb. List of projects is generated by default by
51+ available to gitweb. The list of projects is generated by default by
5252 scanning the projectroot directory for git repositories. This can be
5353 changed (configured) as described in "Gitweb repositories" section
5454 below.
5555
56- Note that gitweb deals directly with object database, and does not
57- need working directory; the name of the project is the name of its
56+ Note that gitweb deals directly with the object database, and does not
57+ need a working directory; the name of the project is the name of its
5858 repository object database, usually projectname.git for bare
5959 repositories. If you want to provide gitweb access to non-bare (live)
60- repository , you can make projectname.git symbolic link under
60+ repositories , you can make projectname.git a symbolic link under
6161 projectroot linking to projectname/.git (but it is just
6262 a suggestion).
6363
6464- You can control where gitweb tries to find its main CSS style file,
65- its favicon and logo with GITWEB_CSS, GITWEB_FAVICON and GITWEB_LOGO
65+ its favicon and logo with the GITWEB_CSS, GITWEB_FAVICON and GITWEB_LOGO
6666 build configuration variables. By default gitweb tries to find them
6767 in the same directory as gitweb.cgi script.
6868
@@ -91,17 +91,17 @@ Gitweb config file
9191See also "Runtime gitweb configuration" section in README file
9292for gitweb (in gitweb/README).
9393
94- - You can configure gitweb further using gitweb configuration file;
95- by default it is file named gitweb_config.perl in the same place as
96- gitweb.cgi script. You can control default place for config file
97- using GITWEB_CONFIG build configuration variable, and you can set it
98- using GITWEB_CONFIG environmental variable. If this file does not
94+ - You can configure gitweb further using the gitweb configuration file;
95+ by default this is a file named gitweb_config.perl in the same place as
96+ gitweb.cgi script. You can control the default place for the config file
97+ using the GITWEB_CONFIG build configuration variable, and you can set it
98+ using the GITWEB_CONFIG environment variable. If this file does not
9999 exist, gitweb looks for a system-wide configuration file, normally
100100 /etc/gitweb.conf. You can change the default using the
101101 GITWEB_CONFIG_SYSTEM build configuration variable, and override it
102- through GITWEB_CONFIG_SYSTEM environmental variable.
102+ through the GITWEB_CONFIG_SYSTEM environment variable.
103103
104- - Gitweb config file is [ fragment] of perl code. You can set variables
104+ - The gitweb config file is a fragment of perl code. You can set variables
105105 using "our $variable = value"; text from "#" character until the end
106106 of a line is ignored. See perlsyn(1) for details.
107107
@@ -128,36 +128,37 @@ Gitweb repositories
128128-------------------
129129
130130- By default all git repositories under projectroot are visible and
131- available to gitweb. List of projects is generated by default by
131+ available to gitweb. The list of projects is generated by default by
132132 scanning the projectroot directory for git repositories (for object
133133 databases to be more exact).
134134
135- You can provide pre-generated list of [visible] repositories,
135+ You can provide a pre-generated list of [visible] repositories,
136136 together with information about their owners (the project ownership
137- is taken from owner of repository directory otherwise), by setting
138- GITWEB_LIST build configuration variable (or $projects_list variable
139- in gitweb config file) to point to a plain file.
140-
141- Each line of projects list file should consist of url-encoded path
142- to project repository database (relative to projectroot) separated
143- by space from url-encoded project owner; spaces in both project path
144- and project owner have to be encoded as either '%20' or '+'.
145-
146- You can generate projects list index file using project_index action
147- (the 'TXT' link on projects list page) directly from gitweb.
148-
149- - By default even if project is not visible on projects list page, you
150- can view it nevertheless by hand-crafting gitweb URL. You can set
151- GITWEB_STRICT_EXPORT build configuration variable (or $strict_export
152- variable in gitweb config file) to only allow viewing of
137+ defaults to the owner of the repository directory otherwise), by setting
138+ the GITWEB_LIST build configuration variable (or the $projects_list
139+ variable in the gitweb config file) to point to a plain file.
140+
141+ Each line of the projects list file should consist of the url-encoded path
142+ to the project repository database (relative to projectroot), followed
143+ by the url-encoded project owner on the same line (separated by a space).
144+ Spaces in both project path and project owner have to be encoded as either
145+ '%20' or '+'.
146+
147+ You can generate the projects list index file using the project_index
148+ action (the 'TXT' link on projects list page) directly from gitweb.
149+
150+ - By default, even if a project is not visible on projects list page, you
151+ can view it nevertheless by hand-crafting a gitweb URL. You can set the
152+ GITWEB_STRICT_EXPORT build configuration variable (or the $strict_export
153+ variable in the gitweb config file) to only allow viewing of
153154 repositories also shown on the overview page.
154155
155156- Alternatively, you can configure gitweb to only list and allow
156- viewing of the explicitly exported repositories, via
157- GITWEB_EXPORT_OK build configuration variable (or $export_ok
157+ viewing of the explicitly exported repositories, via the
158+ GITWEB_EXPORT_OK build configuration variable (or the $export_ok
158159 variable in gitweb config file). If it evaluates to true, gitweb
159- show repository only if this file exists in its object database
160- (if directory has the magic file $export_ok).
160+ shows repositories only if this file exists in its object database
161+ (if directory has the magic file named $export_ok).
161162
162163Generating projects list using gitweb
163164~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0 commit comments