Skip to content

Commit b4c0779

Browse files
ferrous26gitster
authored andcommitted
gitweb: update INSTALL regarding specific snapshot settings
This includes instructions on how to disable a snapshot format and how to add options to a snapshot format (e.g. setting the compression level). Signed-off-by: Mark Rada <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1bfd363 commit b4c0779

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

gitweb/INSTALL

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ GITWEB_CONFIG file:
123123
$feature{'snapshot'}{'default'} = ['zip', 'tgz'];
124124
$feature{'snapshot'}{'override'} = 1;
125125

126+
If you allow overriding for the snapshot feature, you can specify which
127+
snapshot formats are globally disabled. You can also add any command line
128+
options you want (such as setting the compression level). For instance,
129+
you can disable Zip compressed snapshots and set GZip to run at level 6 by
130+
adding the following lines to your $GITWEB_CONFIG:
131+
132+
$known_snapshot_formats{'zip'}{'disabled'} = 1;
133+
$known_snapshot_formats{'tgz'}{'compressor'} = ['gzip','-6'];
134+
126135

127136
Gitweb repositories
128137
-------------------

0 commit comments

Comments
 (0)