Support for using Google Libraries API to serve jquery
[gitphp.git] / config / gitphp.conf.defaults.php
blob:a/config/gitphp.conf.defaults.php -> blob:b/config/gitphp.conf.defaults.php
--- a/config/gitphp.conf.defaults.php
+++ b/config/gitphp.conf.defaults.php
@@ -47,7 +47,7 @@
 /*
  * locale
  * This is the default locale/language used in the interface.
- * The locale must exist in include/resources/locale
+ * The locale must exist in the locale/ directory
  */
 $gitphp_conf['locale'] = 'en_US';
 
@@ -96,7 +96,7 @@
  * references in log messages.  The pattern should have a
  * group that extracts just the bug ID to pass to the 
  * bug tracker.
- * For example, '/#([0-9+)/' will recognize any number
+ * For example, '/#([0-9]+)/' will recognize any number
  * with a '#' in front of it, and groups the numeric part
  * only.  Another common example is '/bug:([0-9]+)/' to
  * extract bug numbers with 'bug:' in front of them.
@@ -139,7 +139,7 @@
  * load javascript libraries, which takes advantage of the
  * speed and caching of Google's servers and content
  * delivery network.
- * http://code.google.com/apis/libraries/
+ * http://developers.google.com/speed/libraries/
  * The libraries are served from Google's servers, which
  * means your users must have an internet connection,
  * so this may not be appropriate for closed intranets.
@@ -180,6 +180,18 @@
 $gitphp_conf['largeskip'] = 200;
 
 /*
+ * uniqueabbrev
+ * If this is turned on, when GitPHP abbreviates hashes, it will ensure
+ * that the abbreviated hash is unique for the project, extending the
+ * abbreviated hash if necessary until it becomes unique.
+ * Searching through every single pack in the repository for collisions is a
+ * performance intensive process that can slow down page loads.  If you turn
+ * this on, it's highly recommended to merge all of your existing packs into
+ * a single pack using git gc --aggressive (or git repack -a -d).
+ */
+$gitphp_conf['uniqueabbrev'] = false;
+
+/*
  * compressformat
  * Indicates what kind of compression will be done on the
  * snapshot archive.  Recognized settings are:
@@ -191,6 +203,10 @@
  * Any other setting, or no setting, will create uncompressed tar archives
  * If you choose a compression format and your php does not support it,
  * gitphp will fall back to uncompressed tar archives
+ *
+ * Note that users with javascript get to choose their snapshot format when
+ * they request it, so this only applies to users without javascript or if
+ * you turn the javascript setting off
  */
 $gitphp_conf['compressformat'] = GITPHP_COMPRESS_ZIP;
 
@@ -232,7 +248,55 @@
  */
 $gitphp_conf['filemimetype'] = true;
 
-
+/*
+ * abbreviateurl
+ * Generates urls using abbreviated hashes instead of
+ * full hashes.
+ * Note that urls with abbreviated hashes are not safe
+ * to be saved long term (eg bookmarks), as future objects
+ * may be added to the repository that cause an abbreviated
+ * hash to no longer be unique.
+ * This option only takes effect with the 'compat' option
+ * turned off.
+ * Additionally, this option will automatically enable
+ * 'uniqueabbrev', as an abbreviated hash must be unique
+ * in order to resolve it to a full hash.
+ */
+$gitphp_conf['abbreviateurl'] = false;
+
+/*
+ * cleanurl
+ * Uses clean, rest-style urls throughout gitphp.
+ * This requires additional setup in your web server
+ * to rewrite urls (mod_rewrite on Apache, HttpRewriteModule
+ * on Nginx, etc).  URLs must be rewritten to point
+ * to index.php?q={query}.
+ * For more instructions on how to set this up, see
+ * http://www.gitphp.org/projects/gitphp/wiki/Clean_URLs
+ */
+$gitphp_conf['cleanurl'] = false;
+
+/*
+ * feedfilter
+ * Sets a regular expression to use to filter commits out
+ * of the project atom/rss feed.  Commits that have a
+ * commit message matching this pattern will be excluded.
+ * For example, '/GIT_SILENT/' will exclude any commit
+ * with the string GIT_SILENT in the commit message.
+ */
+//$gitphp_conf['feedfilter'] = '/GIT_SILENT/';
+
+/*
+ * showrestrictedprojects
+ * By default, when user-based restrictions are enabled,
+ * projects that are not available to the logged in user
+ * will be hidden in the project list.  Setting this option
+ * will instead display these projects as disabled in the
+ * project list.
+ */
+$gitphp_conf['showrestrictedprojects'] = false;
+
+/*
 
 
 /*********************************************************
@@ -257,22 +321,6 @@
 $gitphp_conf['gitbin'] = 'C:\\Progra~1\\Git\\bin\\git.exe';
 
 /*
- * diffbin
- * Path to diff binary
- * Same rules as gitbin
- */
-// Linux:
-$gitphp_conf['diffbin'] = 'diff';
-// Windows (msysgit):
-$gitphp_conf['diffbin'] = 'C:\\Progra~1\\Git\\bin\\diff.exe';
-
-/*
- * gittmp
- * Location for temporary files for diffs
- */
-$gitphp_conf['gittmp'] = '/tmp/gitphp/';
-
-/*
  * magicdb
  * Path to the libmagic db used to read mimetype
  * Only applies if filemimetype = true
@@ -346,6 +394,15 @@
  * this to a high number.  Set to -1 to never expire.
  */
 $gitphp_conf['objectcachelifetime'] = 86400;
+
+/*
+ * objectcachecompress
+ * Sets the size threshold at which objects will be compressed
+ * when being stored into the object cache.  Compression saves
+ * cache space but adds a very slight decompression overhead.
+ * Set to 0 to disable compression.
+ */
+$gitphp_conf['objectcachecompress'] = 500;
 
 /*
  * memcache
@@ -365,41 +422,22 @@
 //	array('memcacheserver2')
 //);
 
-
-
-/*******************************************************
- * Paths to php libraries
- */
-
-/*
- * smarty_prefix
- * This is the prefix where smarty is installed.
- * If an absolute (starts with /) path is given,
- * Smarty.class.php will be searched for in that directory.
- * If a relative (doesn't start with /) path is given,
- * that subdirectory inside the php include dirs will be
- * searched.  So, for example, if you specify the path as
- * "/usr/share/Smarty/" then the script will look for
- * /usr/share/Smarty/Smarty.class.php.
- * If you specify the path as "smarty/" then it will search
- * the include directories in php.ini's include_path directive,
- * so it would search in places like /usr/share/php and /usr/lib/php:
- * /usr/share/php/smarty/Smarty.class.php,
- * /usr/lib/php/smarty/Smarty.class.php, etc.
- * Leave blank to just search in the root of the php include directories
- * like /usr/share/php/Smarty.class.php, /usr/lib/php/Smarty.class.php, etc.
- */
-$gitphp_conf['smarty_prefix'] = 'lib/smarty/libs/';
-
-/*
- * geshiroot
- * Directory where geshi is installed, only applies if geshi is enabled
- * NOTE: this is the path to the base geshi.php file to include,
- * NOT the various other geshi php source files!
- * Leave blank if geshi.php is in the gitphp root
- */
-$gitphp_conf['geshiroot'] = 'lib/geshi/';
-
+/*
+ * objectmemory
+ * If set, this will limit the number of git objects GitPHP
+ * keeps in PHP's memory during execution, to this specific number.
+ * This can be set if you have a low memory limit on your
+ * webserver.
+ * Please note that setting this too low will severely degrade
+ * performance, as GitPHP will have to repeatedly load the same
+ * objects off of the disk since the limit prevents them from
+ * being kept in memory.  It's strongly recommended that you
+ * turn debug mode on and view the MemoryCache size on various
+ * pages (in the debug output) to get a feel for the size of
+ * your projects before setting this.
+ * 0 means no limit.
+ */
+$gitphp_conf['objectmemory'] = 0;
 
 
 

comments