projects.conf.php.example 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. /**
  3. * GitPHP Project config file
  4. *
  5. * Copy this example file to config/projects.conf.php
  6. *
  7. * @author Christopher Han <xiphux@gmail.com>
  8. * @copyright Copyright (c) 2010 Christopher Han
  9. * @package GitPHP
  10. * @subpackage Config
  11. */
  12. /*
  13. * git_projects
  14. * List of projects
  15. *
  16. * There are several ways to list projects:
  17. *
  18. * 1. Array of projects
  19. */
  20. //$git_projects = array(
  21. // 'gentoo.git'
  22. // 'core/fbx.git',
  23. // 'php/gitphp.git',
  24. // 'php/mdb.git',
  25. // 'php/xxcache.git',
  26. // 'websites/bth.git',
  27. //);
  28. /*
  29. * 2. Path to file with list of projects
  30. * Points to a flat file with a list of projects,
  31. * one on each line. Can also read Gitosis project lists.
  32. */
  33. //$git_projects = '/git/projectlist.txt';
  34. /*
  35. * 3. Path to scm-manager repositories.xml file
  36. * Points to the repository config file used by the scm-manager
  37. * program. In order for this to work, the projectroot for GitPHP
  38. * must be the same as the git repository directory configured
  39. * in scm-manager
  40. */
  41. //$git_projects = '~/.scm/config/repositories.xml';
  42. /*
  43. * 4. Leave commented to read all projects in the project root
  44. */
  45. /*
  46. * git_projects_settings
  47. *
  48. * This is used to specify override settings for individual projects.
  49. * This is an array, where each key is the project, and the value is an
  50. * array of settings. This can be used with any of the project list
  51. * methods above.
  52. *
  53. * These config values can also be specified in the project's git config file,
  54. * under the section [gitphp]. A setting set in this file will override
  55. * the setting set in the project's config file.
  56. *
  57. * The following settings can be used:
  58. *
  59. * 'category': the category for the project.
  60. *
  61. * 'owner': the owner of the project. This overrides the actual owner
  62. *
  63. * 'description': the description of the project. This overrides the
  64. * description in the project's description file
  65. *
  66. * 'cloneurl': the full clone url of the project. This overrides the
  67. * clone URL setting in the config for this project.
  68. * This can also be an empty string to override the global
  69. * clone url to say that only this project has no clone url.
  70. *
  71. * 'pushurl': the full push url of the project. This overrides the
  72. * push URL setting in the config for this project.
  73. * This can also be an empty string to override the global
  74. * push url to say that only this project has no push url.
  75. *
  76. * 'bugpattern': the bug number pattern of the project. This overrides
  77. * the bug pattern setting in the config for this project.
  78. * This can also be an empty string to override the global
  79. * bug pattern to say that only this project has no bug
  80. * pattern.
  81. *
  82. * 'bugurl': the bug url for this project. This overrides the bug url
  83. * setting in the config for this project. This can also be
  84. * an empty string to override the global bug url to say that
  85. * only this project has no bug url.
  86. *
  87. * 'compat': whether this project runs in compatibility mode. (true/false)
  88. * This overrides the compat setting in the config for this project.
  89. * Compatibility mode relies more on the git executable for loading
  90. * data, at the expense of performance. Use if you are having
  91. * trouble loading data for this project.
  92. *
  93. * 'website': the website url for the project.
  94. *
  95. * 'allowedusers': an array of usernames allowed to access this project.
  96. * Anonymous users and logged in users not in this list
  97. * will not be able to see or access this project.
  98. * By default, all users will have access to a project if
  99. * this option is not set.
  100. */
  101. //$git_projects_settings['php/gitphp.git'] = array(
  102. // 'category' => 'PHP',
  103. // 'description' => 'GitPHP, a web-based git repository browser in PHP',
  104. // 'owner' => 'Christopher Han',
  105. // 'cloneurl' => 'http://git.gitphp.org/gitphp.git',
  106. // 'pushurl' => '',
  107. // 'bugpattern' => '/#([0-9]+)/',
  108. // 'bugurl' => 'http://www.gitphp.org/projects/gitphp/issues/${1}',
  109. // 'compat' => false,
  110. // 'website' => 'http://www.gitphp.org/',
  111. // 'allowedusers' => array(
  112. // 'user1',
  113. // 'user2'
  114. // )
  115. //);
  116. //$git_projects_settings['gentoo.git'] = array(
  117. // 'description' => 'Gentoo portage overlay',
  118. // 'compat' => true
  119. //);
  120. //$git_projects_settings['core/fbx.git'] = array(
  121. // 'description' => 'FBX music player',
  122. // 'category' => 'Core'
  123. //);
  124. //$git_projects_settings['php/mdb.git'] = array(
  125. // 'category' => 'PHP',
  126. // 'description' => 'MDB: Media Database',
  127. // 'cloneurl' => '',
  128. // 'pushurl' => ''
  129. //);
  130. /*
  131. * Or, in your project's config file (for example gitphp.git/config):
  132. *
  133. * [gitphp]
  134. * category = PHP
  135. * description = GitPHP, a web-based git repository browser in PHP
  136. * owner = Chris Han
  137. * cloneurl = http://git.gitphp.org/gitphp.git
  138. * pushurl =
  139. * bugpattern = "/#([0-9]+)/"
  140. * bugurl = http://www.gitphp.org/projects/gitphp/issues/${1}
  141. * compat = false
  142. * website = http://www.gitphp.org/
  143. * allowedusers = user1
  144. * allowedusers = user2
  145. */