format fixes
[phpgitweb.git] / htdocs / config.example.php
index 6b3bdc4656dcc5891e6e7d8ab03c7cc2c6f3f3f4..f1bb664093b03638ca488ede60caf0415e93d85c 100644 (file)
 
 /* GIT configuration */
 class GitConfig {
-    /* PHPGitWeb Title / Name */
+       /* PHPGitWeb Title / Name */
        const GITWEB_TITLE = "PHPGitWeb";
        
-    /* path to git projects (<project>.git) */
-    const PROJECT_ROOT = "/srv/gitosis/repositories/";
-    
-    /* Point to projects.list file generated by gitosis. */
-    //const PROJECT_LIST = NULL;
-    const PROJECT_LIST = "/srv/gitosis/gitosis/projects.list";
-    
-    /* Only allow Projects from PROJECT_LIST being viewed */
-    const STRICT_EXPORT = true;
-    
-    /* Only allow Projects with this file within their PROJECT_ROOT being viewed */
-    //const EXPORT_FILE = "export-ok";
-    const EXPORT_FILE = NULL;
+       /* path to git projects (<project>.git) */
+       const PROJECT_ROOT = "/srv/gitosis/repositories/";
+       
+       /* Point to projects.list file generated by gitosis. */
+       //const PROJECT_LIST = NULL;
+       const PROJECT_LIST = "/srv/gitosis/gitosis/projects.list";
+       
+       /* Only allow Projects from PROJECT_LIST being viewed */
+       const STRICT_EXPORT = true;
+       
+       /* Only allow Projects with this file within their PROJECT_ROOT being viewed */
+       //const EXPORT_FILE = "export-ok";
+       const EXPORT_FILE = NULL;
        
        /* Override Project Owner to this one */
        const PROJECT_OWNER = NULL;
@@ -53,10 +53,28 @@ class GitConfig {
        
        /* GIT Graphs */
        const GITGRAPH_ENABLE = true;
+       const GITGRAPH_DATA_URL = true;
        const GITGRAPH_MAX_BRANCHES = 20;
        const GITGRAPH_END_SIZE = 20;
        const GITGRAPH_TILE_SIZE = 20;
        const GITGRAPH_BASE64 = true;
+       
+       /* rename detection options for git-diff and git-diff-tree
+       * - default is '0', with the cost proportional to
+       *   (number of removed files) * (number of new files).
+       *   can detect renames of files
+       * - more costly is '1' (which implies '0'), with the cost proportional to
+       *   (number of changed files + number of removed files) * (number of new files)
+       *   can detect renames and copies of changed files
+       * - even more costly is '2' (which implies '0', '1'), with cost
+       *   (number of files in the original tree) * (number of new files)
+       *   can detect renames and copies of all files
+       *
+       * DETECT_REWRITES enables the additional detection for complete rewrites
+       */
+       const DETECT_RENAME_LEVEL = 0;
+       const DETECT_REWRITES = false;
+       
 }
 
 ?>
\ No newline at end of file