<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>xiphux</title>
	
	<link>http://www.xiphux.com</link>
	<description />
	<lastBuildDate>Thu, 19 Apr 2012 23:46:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/xiphux" /><feedburner:info uri="xiphux" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>New GitPHP site</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/BtEchrDywBo/</link>
		<comments>http://www.xiphux.com/2012/04/19/new-gitphp-site/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 19:12:45 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=918</guid>
		<description><![CDATA[GitPHP has moved to its own site at http://gitphp.org. Most of the GitPHP content on this site has also been migrated, and existing pages have been set up to redirect to the equivalents on gitphp.org. All further GitPHP-related updates will be posted to the new site. See you there!]]></description>
			<content:encoded><![CDATA[<p>GitPHP has moved to its own site at <a href="http://gitphp.org">http://gitphp.org</a>.  Most of the GitPHP content on this site has also been migrated, and existing pages have been set up to redirect to the equivalents on gitphp.org.  All further GitPHP-related updates will be posted to the new site.  See you there!</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/BtEchrDywBo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.xiphux.com/2012/04/19/new-gitphp-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.xiphux.com/2012/04/19/new-gitphp-site/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=new-gitphp-site</feedburner:origLink></item>
		<item>
		<title>GitPHP 0.2.6</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/G4YmntNq_v4/20</link>
		<comments>http://gitphp.org/news/20#comments</comments>
		<pubDate>Sat, 28 Jan 2012 17:05:18 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=905</guid>
		<description><![CDATA[I&#8217;ve released GitPHP 0.2.6. This release has more internal changes than end-user ones, but there are still a few enhancements and fixes for users and administrators. Enhancements: Upgrade to Smarty 3. Some templates have been reorganized to take advantage of Smarty 3&#8242;s hierarchical template features RequireJS is now used to serve javascript. RequireJS is a ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released GitPHP 0.2.6.  This release has more internal changes than end-user ones, but there are still a few enhancements and fixes for users and administrators.</p>
<ul>
<li><strong>Enhancements:</strong>
<ul>
<li>Upgrade to <a href="http://smarty.net">Smarty 3</a>.  Some templates have been reorganized to take advantage of Smarty 3&#8242;s hierarchical template features</li>
<li><a href="http://requirejs.org/" title="RequireJS">RequireJS</a> is now used to serve javascript.  RequireJS is a module loader that has allowed me to restructure the javascript code into clean reusable modules.  My javascript code before was&#8230; let&#8217;s just say gross.  Using RequireJS does have some other benefits too:
<ul>
<li>RequireJS loads modules asynchronously and in parallel.  Many browsers still load javascript files from the web server one at a time, blocking each load until the previous one has finished loading.  This improves page load time.</li>
<li>The RequireJS javascript minification process (which I do for all packaged releases) will combine all modules for a page and their dependencies into a single file before compression, which reduces the number of separate files the user&#8217;s browser has to load.</li>
</ul>
</li>
<li>GitPHP can now read project-specific config options from the git config in the repository directory itself (e.g. gitphp.git/config), to allow project-specific settings to carry across multiple gitphp installations.  This file can be edited directly or accessed using the &#8216;git config&#8217; command.  The section is [gitphp], and the config values are each of the project specific settings currently supported in projects.conf.php.  See the comments in projects.conf.php.example for more information.  The project-specific config file will override global gitphp settings in gitphp.conf.php, but install-specific settings in projects.conf.php will override the project-specific config file.</li>
<li>GitPHP can now use the <a href="http://code.google.com/apis/libraries/" title="Google Libraries API">Google Libraries API</a> to serve the jQuery library, by setting the &#8216;googlejs&#8217; config value.  Using the Google Libraries API allows you to offload serving that library from your web server, and allows users to benefit from a single cached file for all sites using the Google Libraries API.  The library is served from Google&#8217;s servers, which means this won&#8217;t work if you&#8217;re running on an intranet without outside internet access.</li>
<li>Signed-off-by lines in commit messages and PGP blocks in tags are styled differently to differentiate them from the actual commit/tag message</li>
<li>The shortlog now displays abbreviated hashes for each commit.  The abbreviation length is read from the project&#8217;s git config file (core.abbrev setting), defaulting to 7.  By default, abbreviated hashes are not checked for collisions.  A gitphp config setting, &#8216;uniqueabbrev&#8217;, has been added which will turn on collision checking when abbreviating hashes.  Note that this is performance intensive because it needs to search every hash in the project, which is why it&#8217;s off by default.  You might be better served just increasing the minimum abbreviation length.</li>
<li>Japanese translation, thanks to Ishikawa Mutsumi</li>
</ul>
</li>
<li><strong>Fixes:</strong>
<ul>
<li>Fix a collision when multiple users were downloading an uncached version of the exact same snapshot at the exact same time</li>
<li>Fix direct line links on non-GeSHi blob pages, thanks to Steve Clay</li>
<li>Fix order of shortlog/log commits when a branch is rebased</li>
<li>Fix trimming of multibyte commit messages in shortlog, thanks to Ishikawa Mutsumi</li>
<li>Fix handling of git&#8217;s commit encoding header in commit messages</li>
<li>Fix handling of non-ASCII filenames in tree view.  Based on a fix by sh2ka</li>
<li>Re-enable whitespace trimming to decrease the size of HTML files served.  Was accidentally disabled during the big rewrite a year ago</li>
<li>Fix a potential XSS vulnerability</li>
</ul>
</li>
</ul>
<p>Smarty 3 was a difficult transition that&#8217;s been in the works for a long time.  Smarty 3 was a complete rewrite from smarty 2 &#8211; and as I certainly found out during my big GitPHP rewrite, a complete rewrite tends to introduce slight unintentional functional changes.  And for Smarty, as a library, those slight functional changes manifest themselves as bugs in the consuming app.  I&#8217;ve spent a long time hunting Smarty 3 bugs in GitPHP using every single possible configuration combination I could think of.  I believe I&#8217;ve gotten all the ones I can find, but I can&#8217;t possibly reproduce every single setup and git repo out there &#8211; so if you run into issues, by all means let me know.</p>
<p><strong>Smarty 2&#8242;s compiled templates and cached files are incompatible with Smarty 3, so for safety I would suggest deleting the compiled templates in the template_c/ directory, any cached files in the cache/ directory, and bouncing Memcache if you use it.</strong>  Smarty 3&#8242;s template compilation takes longer than before due to the hierarchical templates, however this will only happen the first time a page is loaded after deleting the contents of templates_c, you won&#8217;t have to do it again.</p>
<p>The release is on the <a href="http://www.xiphux.com/programming/gitphp/">GitPHP page</a> and bugs can be filed on <a href="http://mantis.xiphux.com">the bugtracker</a>.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/G4YmntNq_v4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/20?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gitphp-0-2-6</feedburner:origLink></item>
		<item>
		<title>GitPHP 0.2.5</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/jvi8jZg87Og/19</link>
		<comments>http://gitphp.org/news/19#comments</comments>
		<pubDate>Sat, 27 Aug 2011 22:16:13 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=893</guid>
		<description><![CDATA[I&#8217;ve released GitPHP 0.2.5. I&#8217;ve had a little more free time recently than I&#8217;ve had for the past couple versions, so this version has some more changes than the previous couple releases. Enhancements: Move a lot of the data loading to using raw php file parsing instead of relying on the git executable. This causes ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released GitPHP 0.2.5.  I&#8217;ve had a little more free time recently than I&#8217;ve had for the past couple versions, so this version has some more changes than the previous couple releases.</p>
<ul>
<li><strong>Enhancements:</strong>
<ul>
<li>Move a lot of the data loading to using raw php file parsing instead of relying on the git executable.  This causes an enormous performance boost, especially on webservers that have very expensive process forking (I&#8217;m looking at you Apache)</li>
<li>Add a &#8216;compat&#8217; config option that can be specified globally or per-project, to fall back on the old method of loading data if you run into issues with the previous enhancement.  (PHP will not process repository packfiles larger than 2GB)</li>
<li>Add a &#8216;largeskip&#8217; config option.  Using raw PHP data loading, we have to walk commits down the log as you page down earlier and earlier in the history, which has decreasing performance as you go back.  This determines at what threshold gitphp will instead just use the git executable.
<li>Display merge commits in the shortlog with grayed-out titles, thanks to Tanguy Pruvot</li>
<li>Subdirectory snapshots now include the subdirectory as part of the archive name</li>
<li>Support for the <a href="http://pecl.php.net/package/xdiff">xdiff php extension</a>.  If you have the xdiff php extension installed, that will be used for diffing, which is faster and completely eliminates the need to have a separate diff executable or temp dir configured.</li>
<li>Support for loading the project list from an <a href="http://www.scm-manager.org/">SCM-Manager</a> config.  Only projects marked public are loaded.  Based on work done by Craig Sparks</li>
<li>Add debug info when searching directory for projects.  If you aren&#8217;t seeing certain or any projects appear when letting GitPHP find all projects in the project root, turn on the &#8216;debug&#8217; config option to see more about what it&#8217;s doing.</li>
<li>Benchmarking info is now turned on separately from debug info, with a new config option &#8216;benchmark&#8217;</li>
<li>Cache list of projects if the object cache is turned on, instead of searching the project root every time.  Based on work done by Tanguy Pruvot</li>
<li>Archives are now delivered incrementally to the user&#8217;s browser, instead of being loaded entirely into memory first.  This avoids PHP out-of-memory errors when trying to snapshot a very large project.  Note: as a result of this change, snapshot tarballs are no longer cached to Memcache, even if Memcache support is turned on.  They will always be cached to the cache directory on disk.</li>
<li>Minify CSS for performance</li>
<li>Support tags pointing directly to blobs.  This isn&#8217;t commonly done but can be used to embed something like a GPG key in a repository</li>
<li>Allow displaying a website URL for a project.  Because this can&#8217;t really be automatically calculated the way clone/push urls can, this is a per-project setting only.</li>
</ul>
</li>
<li><strong>Fixes:</strong>
<ul>
<li>Fixed how the default diff executable is determined if not specified in the config</li>
<li>Fixed issues diffing when the temp dir had spaces in the name (common on Windows)</li>
<li>Fixed issues diffing on windows when the temp dir didn&#8217;t have a trailing backslash</li>
<li>Avoid floods of warning messages when the fileinfo magic database is incorrectly compiled</li>
<li>Avoid warning messages when the project doesn&#8217;t have a description file.  (sometimes happens with repositories created by third party software other than the standard git program)</li>
<li>Fixed some display issues on the project list with owner/age/links columns wrapping too much when the project has an extremely long description</li>
<li>Avoid warning messages when listing all projects in the projectroot and the webserver user doesn&#8217;t have read access to one of the directories.  Based on a fix by Justyn Shull</li>
<li>Fixed issue where using the diff link by a single file on the commit page showed the wrong commit at the top of the diff</li>
</ul>
</li>
</ul>
<p>As always, the release is on the <a href="http://www.xiphux.com/programming/gitphp/">GitPHP page</a> and bugs can be filed on <a href="http://mantis.xiphux.com">the bugtracker</a>.  If you need support you can always <a href="mailto:xiphux@gmail.com">email me</a>, or if you would prefer a more public discussion, you can use the <a href="http://forums.xiphux.com">forums</a>.</p>
<p><strong>Q: You&#8217;ve had a smarty 3 branch in progress for a while now.  Why haven&#8217;t you merged it yet? Smarty 3 is perfect and amazing!!!1!eleven1one</strong><br />
<strong>A:</strong> Not quite.  Smarty 3 is a complete rewrite and, just like the complete GitPHP rewrite a year ago, has some bugs and some differences in behavior.  These changes in smarty 3 actually broke some of the functionality in GitPHP.  I&#8217;ve been making changes to accomodate new behavior, and doing hacks to work around smarty 3 bugs, and I&#8217;m still not convinced I&#8217;ve found all of them yet.  Additionally, Smarty 3&#8242;s cache infrastructure is completely different from Smarty 2, which renders all custom cache code useless.  In particular, this means that GitPHP Memcache support does not work at all with Smarty 3.  The upgrade to smarty 3 is something that makes development easier but has no real discernible effect for end users.  I refuse to do an &#8216;upgrade&#8217; that will negatively impact end users, especially when that negative impact is lost functionality.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/jvi8jZg87Og" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/19/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/19?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gitphp-0-2-5</feedburner:origLink></item>
		<item>
		<title>Decreasing use of the git exe in GitPHP</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/2_uci9Q1gbU/18</link>
		<comments>http://gitphp.org/news/18#comments</comments>
		<pubDate>Tue, 12 Jul 2011 02:56:55 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=839</guid>
		<description><![CDATA[I&#8217;m actually not getting screwed by work this month, so I have a branch I&#8217;m working on where I&#8217;m changing the way GitPHP loads data from a project.  I&#8217;m moving as much of the data loading as possible into php itself, by having PHP directly access the objects and packfiles in the git project, rather ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m actually not getting screwed by work this month, so I have a branch I&#8217;m working on where I&#8217;m changing the way GitPHP loads data from a project.  I&#8217;m moving as much of the data loading as possible into php itself, by having PHP directly access the objects and packfiles in the git project, rather than relying on calls to the git executable.  The packfile loading code is based off of <a href="http://github.com/patrikf/glip">Glip</a>, but these changes are not actually using the Glip library itself.</p>
<p>The majority of the work is done.  I&#8217;m going to be merging it into master relatively soon, with the intent of including the changes in the next release.  Since this is such a fundamental change to the way data is loaded, I&#8217;m providing a configuration option to fall back to using the git executable (like GitPHP has always done) in case there are issues, and I&#8217;m considering providing this option on a per-project basis.</p>
<p><strong>Update 7/17:</strong> This is merged into master.  Any beta testers willing to test the new loading code on their repositories by running from git master would be appreciated&#8230; maybe we can knock out any major compatibility issues early.</p>
<p><strong>Q: Why?</strong><br />
A: Several reasons:</p>
<ol>
<li>Compatibility.  The less calls I have to do to the shell, the less I have to worry about the differences between Linux and Windows, and breaking one or the other (usually Windows, since I develop on Linux)</li>
<li>Performance.  Every shell execution is a fork() off of the webserver&#8217;s process.  When you run lots of shell commands one after another, fork()-ing the web server process each time, the delay is noticeable.</li>
<li>Security.  While the good security practice would be to make your git repositories read-only to the webserver user, I bet very few people actually do that.  Passing user input down to a shell command is always a dangerous thing to do, and potentially exposes your server to hackers.  Unfortunately, I&#8217;ve always put functionality above security when calling the git executable, and I&#8217;d like to change that.</li>
</ol>
<p><strong>Q: Why didn&#8217;t you use Glip?</strong><br />
A. I experimented with using Glip.  In doing so, I found a couple things:</p>
<ol>
<li>Glip is incomplete.  It doesn&#8217;t load all of the objects that can exist in a git project, and is also missing a number of features I would need for it to replace the git executable.</li>
<li>Glip provides its own API to access objects in a git project &#8211; Blob, Commit, Tree, etc.  These objects were very similar to the git object representations I had created for GitPHP, but the API was different enough to make them incompatible.  In loading data using Glip, I found myself creating Glip objects, manually picking out values off of the properties just to stuff them into my own properties, and discarding the Glip objects.  Not only that, but the way it stored data in properties was different enough from my git objects that I ended up having to do redundant conversions.  Glip would load data in git&#8217;s internal representation, convert them to php&#8217;s internal representation, and then I would extract those values and convert them back into git&#8217;s internal representation for use in my objects.  It just felt like a really redundant amount of glue code.  I have no doubt that Glip would be great if you were writing a project from scratch based off it, but ripping apart and rewriting all of GitPHP&#8217;s model code is not something I&#8217;m looking to do anytime soon.</li>
</ol>
<p><strong>Q: Does this mean the git executable is no longer required?</strong><br />
A: Right now the git exe is still required.</p>
<p><strong>Q: Does this mean we may not need the git executable in the future?</strong><br />
A. I don&#8217;t want to say never, but this is unlikely.  While loading data from plain git objects is significantly faster in raw PHP, this also means that the processing has to be done in PHP.  There are a number of cases where large amounts of processing in PHP actually make it slower than just biting the bullet and calling the git executable:</p>
<ol>
<li>The git rev-list command (used for the shortlog/log) has a &#8211;skip command, which is used to skip a certain number of commits down in the log.  This is used for the next/prev paging in the log in GitPHP.  In raw PHP, we don&#8217;t have this option &#8211; we have to walk all the way down the commit log ourselves.  So in PHP, if you want to get page 5 of the log (commits 401-500), you have to walk the log and load commits 1-500, and discard the first 400.  So you can imagine that it gets really slow when you get down to page 21, and you have to load the first 2100 commits and discard the first 2000.  And walking the log isn&#8217;t just following each parent link &#8211; it&#8217;s any commit <em>reachable</em> from the tip, which includes all merged branches and any of their reachable commits.  The current implementation actually uses raw php for the early pages of the log, but when skipping a significant number of commits, falls back on the git executable in order to keep performance reasonable.</li>
<li>Searching for a commit, committer, or author requires loading every single commit in the history.</li>
<li>Grepping inside files requires loading up the contents of every single file in a tree and searching every line.</li>
<li>Getting the history of a file requires reading every single commit in the entire history and reading each commit&#8217;s tree to see if it touched this file.  That also doesn&#8217;t take into account things like detecting renames.</li>
<li>Getting the blame of a file requires getting the entire history of a file and diffing every commit with its parent to figure out the changes to the file.</li>
<li>Diffing a file would require me to write my own diff algorithm (non-trivial), or requiring an external php extension like xdiff, which I don&#8217;t want to do.</li>
</ol>
<p><strong>Q: Are there any additional requirements?</strong><br />
A: You&#8217;ll need <a href="http://us2.php.net/manual/en/book.zlib.php">Zlib</a> support in your PHP, since git objects are gz-compressed.</p>
<p><strong>Q: Are there any limitations?</strong><br />
A. The new loading code won&#8217;t read packfiles larger than 2GB.  This is a limitation in Glip, too.  It&#8217;s because php&#8217;s fseek() (or actually most operations in php) top out at 2GB (2*1024^3).</p>
<p>I&#8217;ll update this post with any other FAQs I can think of.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/2_uci9Q1gbU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/18/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/18?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=decreasing-use-of-the-git-exe-in-gitphp</feedburner:origLink></item>
		<item>
		<title>GitPHP 0.2.4</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/izJYpsu-N6Q/17</link>
		<comments>http://gitphp.org/news/17#comments</comments>
		<pubDate>Sat, 25 Jun 2011 01:58:35 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=832</guid>
		<description><![CDATA[GitPHP 0.2.4 is out. I&#8217;ve still been pretty busy, I apologize. Chinese translation &#8211; thanks to seefan Side-by-side diffs for blobdiff and commitdiff &#8211; based on work by Mattias Ulbrich and Tanguy Pruvot Fix clone and push urls using ssh colon notation &#8211; thanks to mdevilz Allow specifying hashbases by branch/tag name in URLs &#8211; ]]></description>
			<content:encoded><![CDATA[<p>GitPHP 0.2.4 is out.  I&#8217;ve still been pretty busy, I apologize.</p>
<ul>
<li><strong>Chinese translation</strong> &#8211; thanks to seefan</li>
<li><strong>Side-by-side diffs for blobdiff and commitdiff</strong> &#8211; based on work by Mattias Ulbrich and Tanguy Pruvot</li>
<li><strong>Fix clone and push urls using ssh colon notation</strong> &#8211; thanks to mdevilz</li>
<li><strong>Allow specifying hashbases by branch/tag name in URLs</strong> &#8211; previously you were required to specify the entire ref name, eg hb=refs/heads/master.  Now you can just specify the head/tag name, eg hb=master.</li>
<li><strong>Fix crash in blobdiff_plain when specifying hashbase without a hash</strong> &#8211; this prevented you from using urls with just a filename and hashbase id or ref name, which was supposed to find the right file hash automatically</li>
</ul>
<p>Release is on the <a href="http://www.xiphux.com/programming/gitphp">GitPHP</a> page and bugs can be reported on the <a href="http://mantis.xiphux.com">bugtracker</a>.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/izJYpsu-N6Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/17/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/17?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gitphp-0-2-4</feedburner:origLink></item>
		<item>
		<title>GitPHP 0.2.3</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/0rOBL1vtbF0/16</link>
		<comments>http://gitphp.org/news/16#comments</comments>
		<pubDate>Fri, 25 Feb 2011 02:25:02 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=803</guid>
		<description><![CDATA[I&#8217;ve released GitPHP 0.2.3. Unfortunately I&#8217;ve had a pretty busy couple months at work, so I didn&#8217;t really get to any of the enhancements that I intended to get to this release. 0.2.3 has several bugfixes that I wanted to get out, rather than delaying the release and making you wait for them. Degrade gracefully ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released GitPHP 0.2.3.  Unfortunately I&#8217;ve had a pretty busy couple months at work, so I didn&#8217;t really get to any of the enhancements that I intended to get to this release.  0.2.3 has several bugfixes that I wanted to get out, rather than delaying the release and making you wait for them.</p>
<ul>
<li><strong>Degrade gracefully when the system doesn&#8217;t have posix functions</strong><br />Previously there was a bug where the page crashed when trying to display the project owner on systems without the php posix module installed (windows systems, and several linux distributions).  If you don&#8217;t have this module then the owner still won&#8217;t display unless you set the gitweb.owner config value or override it in projects.conf.php, but at least the page won&#8217;t stop rendering it.</li>
<li><strong>Make the language setting a permanent cookie</strong><br />Previously, the language cookie was a session cookie, so when you came back to the site you had to change your language again.  Now it&#8217;s a permanent cookie with a 1 year expiration.</li>
<li><strong>Escape HTML in the title header</strong><br />Previously, commit messages weren&#8217;t escaped in the title bar (the gray bar with the commit message at the top of the page, below the nav), so commit messages with HTML in them caused weird things to happen.  Now the HTML displays properly</li>
<li><strong>Add attribution and link back to GitPHP page in the footer</strong><br />This is by request, I swear.  If you don&#8217;t like it, I don&#8217;t mind if you delete it from the footer and go back to the old appearance.</li>
<li><strong>Run javascript project livesearch after the user stops typing</strong><br >Previously the javascript livesearch on the project list ran after every letter you typed.  This caused a severe performance hit on larger project lists, since the browser would churn through the huge list of projects many times in succession.  Now it runs after the user stops typing.</li>
<li><strong>Remove containing tag from object cache</strong><br />Previously an object&#8217;s containing tag was stored in the object cache.  The containing tag is actually not immutable data, and so there are certain cases where caching this would cause the display to get out of sync.  Now, this is no longer cached.  I would suggest clearing your cache after upgrading to be safe.</li>
<li><strong>Improve performance of projects with lots of tags or heads</strong><br />Previously there was a <strong>severe</strong> performance problem with projects with many tags or heads (hundreds).  This was because it was attempting to load all tags and all their data into memory.  For example, the git repo for the git program has almost 400 tags, and took almost 2 minutes to load any page.  Now, it only loads the data for the tags it needs so it&#8217;s a lot better.</li>
<li><strong>Clean up stylesheets</strong><br />Previously the stylesheet was a mess and was really difficult to read.  I&#8217;ve cleaned it up, organized it, and broken it out into two separate stylesheets &#8211; a functional stylesheet (gitphp.css) which contains declarations needed for gitphp to layout and work properly, and a look and feel stylesheet (gitphpskin.css) which customizes the colors and styling.  The stylesheet config option now controls the location of the skin stylesheet &#8211; so you can make a copy, customize the look and feel, and point the stylesheet config option at the new skin stylesheet.  The config option has backwards compatibility to handle the fact that the stylesheet name changed but people may have the option pointing at the old single stylesheet from previous example configs.</li>
</ul>
<p>As always, the release is available on the <a href="http://www.xiphux.com/programming/gitphp/">GitPHP page</a> and bugs can be reported on the <a href="http://mantis.xiphux.com">bugtracker</a>.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/0rOBL1vtbF0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/16?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gitphp-0-2-3</feedburner:origLink></item>
		<item>
		<title>GitPHP 0.2.2</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/Hj6m2RsajvI/15</link>
		<comments>http://gitphp.org/news/15#comments</comments>
		<pubDate>Sun, 12 Dec 2010 21:46:04 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=796</guid>
		<description><![CDATA[I&#8217;ve released GitPHP 0.2.2. There are a number of neat enhancements in this release; you might have seen some running on the local copy on this site &#8211; javascript livesearch of the project list, ajax tree drilldown, choice of snapshot format, bugtracker linking, etc. Plus there are major enhancements on the backend, including the object ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released GitPHP 0.2.2.  There are a number of neat enhancements in this release; you might have seen some running on the local copy on this site &#8211; javascript livesearch of the project list, ajax tree drilldown, choice of snapshot format, bugtracker linking, etc.  Plus there are major enhancements on the backend, including the object cache described in a previous post, and built-in memcache support for all caching &#8211; just specify the memcache server(s) in the config and you&#8217;re good to go.</p>
<p>Full changelog:</p>
<ul>
<li>Enhancements:
<ul>
<li>Atom feed support, thanks to Christian Weiske</li>
<li>Error pages now return proper HTTP error codes to avoid search engine indexing</li>
<li>Users can now choose the file format of snapshot they want, based on what&#8217;s supported by the system.  The config value still controls the default for non-javascript users.</li>
<li>Directories in the config file no longer require you to specify the trailing slash</li>
<li>Overriding project settings (category, owner, description, clone url, etc) can now be done for all project listing methods &#8211; directory list, file list, and array list.  Previously it could only be done with the array</li>
<li>The tree view can now be drilled down using AJAX</li>
<li><a href="http://memcached.org/">Memcache</a> support</li>
<li>Support for linking bug numbers in commit messages to a bug tracker</li>
<li>Search box to search projects on the project list.  This is a live search if you have javascript</li>
<li>Object cache, for caching immutable git data &#8211; more info on what this is and why you want it is <a href="http://www.xiphux.com/2010/10/25/the-cache-strikes-back-the-gitphp-object-cache/">here</a></li>
<li>Javascript is now minified to decrease its size</li>
<li>Clone/push urls on the project page are now links, thanks to Cory Thomas</li>
<li>Project owners are now read from the git config value gitweb.owner if set, thanks to Cory Thomas</li>
</ul>
</li>
<li>Translations:
<ul>
<li>Russian, thanks to Aidsoid</li>
<li>German, thanks to Andy Tandler</li>
</ul>
</li>
<li>Bugfixes:
<ul>
<li>Fix issue where commit tooltips didn&#8217;t escape HTML characters correctly</li>
<li>Project ages on the project list page now use a more accurate method to get the age</li>
<li>The default tmpdir, if not specified in the config, is read from the system/php config rather than hardcoding it.  This also fixes an issue where the default tmpdir for windows was incorrect</li>
<li>Fix the default git binary for windows x64 installs</li>
<li>An error message now displays when the diff/git executable isn&#8217;t found or doesn&#8217;t work, rather than just failing silently</li>
</ul>
</li>
</ul>
<p>For those who are wondering about <a href="http://www.xiphux.com/2010/10/16/gitphp-project-array-format/">this post</a> about a backwards incompatible change &#8211; the change to specify overrides for all project list formats does change the project config file (projects.conf.php) format slightly, but the code is backwards compatible and will continue to use your old project config file until you adjust it for the new changes.</p>
<p>As always, the release can be downloaded from the <a href="http://www.xiphux.com/programming/gitphp/">gitphp page</a> and bugs can be reported on the <a href="http://mantis.xiphux.com/">bugtracker</a>.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/Hj6m2RsajvI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/15/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/15?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gitphp-0-2-2</feedburner:origLink></item>
		<item>
		<title>GitPHP 0.2.1</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/qIyonHDc9kg/14</link>
		<comments>http://gitphp.org/news/14#comments</comments>
		<pubDate>Sat, 09 Oct 2010 20:59:46 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=770</guid>
		<description><![CDATA[I&#8217;ve released GitPHP 0.2.1. This release fixes a number of the bugs that arose from the rewrite first released in 0.2.0, and also adds a number of features that I intended to add but didn&#8217;t make it into 0.2.0. The biggest change is that my homebrew translation framework that appeared in 0.2.0 was ripped out ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve released GitPHP 0.2.1.  This release fixes a number of the bugs that arose from the rewrite first released in 0.2.0, and also adds a number of features that I intended to add but didn&#8217;t make it into 0.2.0.</p>
<p>The biggest change is that my homebrew translation framework that appeared in 0.2.0 was ripped out and replaced with gettext.  I apologize if you already started translating, but gettext is much easier to work with, I promise.  I&#8217;ve provided a short starter HOWTO in doc/TRANSLATING.  As always, you can send a translation to me for inclusion in the official release.<br />
If you&#8217;re running gitphp from the git repo instead of the tarball, you will need to run util/msgfmt.sh from the gitphp base directory after cloning the repository to compile the gettext MO files, or else the translations won&#8217;t work.  The tarball releases have this done already and will work out of the box.</p>
<p>Language can also be selected on the fly by users now, using a drop-down menu.  The default setting for this for a first-time visitor is the browser&#8217;s preferred language if supported, followed by whatever&#8217;s specified in the gitphp config, followed by English as the final default.  Check it out at the <a href="http://gitphp.xiphux.com/">live copy</a>.</p>
<p>Also, this is the first release of gitphp that provides another language besides English: gitphp is now available in French, thanks to Zaran.</p>
<p>The other notable enhancement is the ability for users to select arbitrary commits on the log or commit pages, and diff them.  Each commit in the log or shortlog shows a &#8220;select for diff&#8221; link.  Click this by a commit to select it.  The selected diff will appear in the very top header of the log or shortlog, with a partial commit message (with the full commit tooltip), and the option to deselect it.  The &#8220;select for diff&#8221; links by commits will now change to &#8220;diff with selected&#8221; &#8211; click this to do the diff.  (The link by the currently selected commit will change to &#8220;deselect&#8221;)  This selection persists across pages of the shortlog/log, so you can diff across two different pages.  The selection will also persist when switching back and forth from log to shortlog and vice versa, although going to a non-log page will discard the selection.  The implementation is original, but I&#8217;d like to thank Calen Pennington for some of the UI designs.</p>
<p>Here&#8217;s the full list of changes:</p>
<ul>
<li>GitPHP now uses gettext for internationalization.  I&#8217;ve also provided a short howto in doc/TRANSLATING</li>
<li>Language can now be changed on the fly by the user using a drop-down menu in the upper right.  The initial default for this is the user&#8217;s preferred language from their browser.  If there is no translation for the user&#8217;s language, it will fall back to the locale in the config, then to English as the final default.  But of course, the user can always change the language whenever they want.  The user&#8217;s language choice is remembered by a browser cookie.</li>
<li>French translation, thanks to Zaran</li>
<li>On the log and shortlog pages, arbitrary diffs can be selected and diffed.  You can select one commit, then diff with any other.  Your selected diff will persist across pages, in case you want to diff between two different pages.  The selected diff, if there is one, will appear in the top header, above the log/shortlog.  This selection will also persist when switching from the shortlog to the log and vice versa.</li>
<li>New pieces of metadata can now be specified for a project using the advanced project array format (in projects.conf.php): description, owner, clone url, and push url.  Specifying any of these for a project will override that data for that project only.</li>
<li>Tree view and commit view now provide a &#8220;plain&#8221; link by blobs to go right to the plaintext view of that blob</li>
<li>Added a file history link to the blob page</li>
<li>To make things a little easier to track, the home text template that configures the header of the project list (templates/hometext.tpl) is no longer provided in the tarball.  The system will show the default hometext, but you can <strong>create</strong> templates/hometext.tpl with your content to customize the header.  Therefore, this is backwards compatible for everyone who already has a customized hometext.tpl template.</li>
<li>The &#8220;projects&#8221; link in the upper left that takes you to the main project list can be customized.  Please be advised that if you override this, you&#8217;re also hardcoding the language that it appears in.</li>
<li>Fixed a bug where search wouldn&#8217;t work on git &lt; 1.5.3</li>
<li>Fixed a bug where some dates wouldn&#8217;t show up correctly on windows</li>
<li>Fixed a bug where an exception would be thrown if no config file existed</li>
<li>Fixed bugs where GitPHP would crash when an empty project with no commits was being loaded</li>
<li>Fixed a bug in reading projects from a list file, where owners with multiple words in the name would only display the first word</li>
<li>Fixed a bug on the commit page, where the history link by a deleted file wouldn&#8217;t work</li>
<li>Fixed a bug where the javascript commit tooltip would appear out of the browser window for a commit close to the bottom of the page</li>
<li>XHTML validation fixes, thanks to Christian Weiske</li>
<li>Minor visual fix where source files in commit diffs were missing the &#8220;a/&#8221; prefix (but destinations files still had the &#8220;b/&#8221; prefix)</li>
</ul>
<p>Get it on the <a href="http://www.xiphux.com/programming/gitphp/">GitPHP</a> page.</p>
<p>As always, anything &#8211; bugs, enhancement requests, etc &#8211; can be reported on the <a href="http://mantis.xiphux.com">Mantis bugtracker</a>.  I&#8217;d like to give a big thanks to the people that have been using the bugtracker already; it&#8217;s been a huge help in keeping me and my development organized.</p>
<p>I&#8217;ve also created a <a href="http://www.ohloh.net/p/gitphp">page for GitPHP on Ohloh</a>, if you&#8217;re interested.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/qIyonHDc9kg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/14/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/14?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gitphp-0-2-1</feedburner:origLink></item>
		<item>
		<title>GitPHP 0.2.0</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/r-1QOO7R628/13</link>
		<comments>http://gitphp.org/news/13#comments</comments>
		<pubDate>Sat, 18 Sep 2010 21:57:21 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=757</guid>
		<description><![CDATA[Well, it&#8217;s my birthday, which I figure is a good enough reason to finally release the GitPHP rewrite. I&#8217;m releasing it as 0.2.0 &#8211; I figured that the architectural rewrite is significant enough to warrant some kind of larger version bump, but since it doesn&#8217;t look and behave all that differently to end users, a ]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s my birthday, which I figure is a good enough reason to finally release the GitPHP rewrite.</p>
<p>I&#8217;m releasing it as 0.2.0 &#8211; I figured that the architectural rewrite is significant enough to warrant some kind of larger version bump, but since it doesn&#8217;t look and behave all that differently to end users, a major version bump isn&#8217;t necessary.</p>
<p>Here&#8217;s what I came up with for the changelog, although as a total rewrite from scratch, there could very well be other &#8220;features&#8221; and changes that made it in that I&#8217;m not thinking of, just by virtue of the entire codebase changing:</p>
<ul>
<li>Major architectural rewrite &#8211; end users aren&#8217;t heavily affected, but developers will appreciate it.  On the other hand, <strong>PHP 4 is no longer supported</strong></li>
<li>Much more simplified config that works on an override strategy &#8211; so your config file can be much cleaner</li>
<li>Can fetch snapshots of a subtree (subdirectory), rather than the entire tree &#8211; thanks to Tejas Dinkar</li>
<li>When listing out projects in the projectroot (instead of explicitly listing them in the config), can optionally respect the git-daemon-export-ok magic file used by git-daemon to include/exclude projects &#8211; thanks to Calen Pennington</li>
<li>When listing out projects in the projectroot (instead of explicitly listing them in the config), projects in subdirectories will be automatically &#8220;categorized&#8221; by their directories &#8211; thanks to Calen Pennington</li>
<li>AJAX javascript tooltips to display the full commit message when hoving over a commit link, and the full tag message for a tag object</li>
<li>Use AJAX javascript to load blame info right into the blob page, instead of posting to a separate page</li>
<li>Internationalization support, although we don&#8217;t have any translations yet</li>
<li>Blame page now supports syntax highlighting</li>
<li>New way of specifying categories for projects &#8211; in preparation for more metadata to be added to projects</li>
<li>The little colored ref badges now have different colors to distinguish between heads and tags</li>
<li>File sizes by blobs in the tree view</li>
<li>File searching shows the matching line number</li>
</ul>
<p>In theory this will work as a drop-in replacement for previous versions &#8211; no changes necessary.  However, because of the newer and cleaner config system, it might be worth it to run through your configuration again using the example and copying from the defaults file, just to clean up the amount of stuff you have to look at in your config file.  Also, if you were using the method of defining projects as an array to specify categories, you might want to have a look at the new way of specifying the categories in projects.conf.php if you have a chance.  You don&#8217;t gain anything from changing to the new format now so you don&#8217;t have to, but eventually new features will be added to the new format, which you won&#8217;t be able to benefit from if you aren&#8217;t using it.</p>
<p>As I mentioned in the previous post, internationalization is now open again, so if you&#8217;re interested in doing a translation, <a href="mailto:xiphux@gmail.com">contact me</a>.</p>
<p>As always, downloads are available on the <a href="http://www.xiphux.com/programming/gitphp/">GitPHP page</a>, and bugs / enhancement requests can be reported on the <a href="http://mantis.xiphux.com">Mantis bugtracker</a> &#8211; with ~12000 new lines of code, I&#8217;m certaintly expecting a few unforseen bugs.  Source code is always browsable on the <a href="http://gitphp.xiphux.com">live GitPHP</a>.</p>
<p>You can always let me know what you think of the rewrite (or the project in general) by multiple means: <a href="mailto:xiphux@gmail.com">email</a>, commenting on my site, twitter, etc.</p>
<p>I hope you enjoy the new code.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/r-1QOO7R628" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/13/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/13?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gitphp-0-2-0</feedburner:origLink></item>
		<item>
		<title>GitPHP Internationalization…. again</title>
		<link>http://feedproxy.google.com/~r/xiphux/~3/avI2S84x2O8/12</link>
		<comments>http://gitphp.org/news/12#comments</comments>
		<pubDate>Sun, 12 Sep 2010 00:49:26 +0000</pubDate>
		<dc:creator>xiphux</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[gitphp]]></category>

		<guid isPermaLink="false">http://www.xiphux.com/?p=709</guid>
		<description><![CDATA[I&#8217;ve had an internationalized branch of the GitPHP rewrite ready for some time, but I was holding off on merging it until the rewrite stabilized. However, it became a pain for me to keep rebasing the branch over and over, so I just decided to merge it, even though there are no translations yet. You ]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had an internationalized branch of the GitPHP rewrite ready for some time, but I was holding off on merging it until the rewrite stabilized.  However, it became a pain for me to keep rebasing the branch over and over, so I just decided to merge it, even though there are no translations yet.  You can look at the discrepancy between the author and committer dates to see how long it&#8217;s been sitting around.</p>
<p>With that said, now GitPHP is, in theory, able to work with any locale as long as someone translates the strings.  The only thing I&#8217;ve done so far is string tokenization &#8211; I could probably pull out the date formats and allow those to vary by locale, however right now it&#8217;s not a big priority because the dates used throughout GitPHP are mostly ISO dates not specific to any locale.  Also right now the language is defined at the config level &#8211; I intend to add the ability in the future for users to choose their own language.</p>
<p>So now, for the second time, a call&#8230; if you&#8217;re interested in translating GitPHP&#8217;s strings into another language, contact me at <a href="mailto:xiphux@gmail.com">xiphux@gmail.com</a>.  I know some of you contacted me earlier the first time I made this call, but I decided to hold off since I knew this rewrite was coming.  I apologize, but I&#8217;ve probably lost track of your emails &#8211; so if you&#8217;re still interested, please contact me again.</p>
<img src="http://feeds.feedburner.com/~r/xiphux/~4/avI2S84x2O8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://gitphp.org/news/12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://gitphp.org/news/12?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=gitphp-internationalization-again</feedburner:origLink></item>
	</channel>
</rss>
