Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   gitweb.conf    ( 5 )

файл конфигурации Gitweb (веб-интерфейс Git) (Gitweb (Git web interface) configuration file)

Примеры (Examples)

To enable blame, pickaxe search, and snapshot support (allowing
       "tar.gz" and "zip" snapshots), while allowing individual projects
       to turn them off, put the following in your GITWEB_CONFIG file:

$feature{'blame'}{'default'} = [1]; $feature{'blame'}{'override'} = 1;

$feature{'pickaxe'}{'default'} = [1]; $feature{'pickaxe'}{'override'} = 1;

$feature{'snapshot'}{'default'} = ['zip', 'tgz']; $feature{'snapshot'}{'override'} = 1;

If you allow overriding for the snapshot feature, you can specify which snapshot formats are globally disabled. You can also add any command-line options you want (such as setting the compression level). For instance, you can disable Zip compressed snapshots and set gzip(1) to run at level 6 by adding the following lines to your gitweb configuration file:

$known_snapshot_formats{'zip'}{'disabled'} = 1; $known_snapshot_formats{'tgz'}{'compressor'} = ['gzip','-6'];