Author Archive for xiphux

GitPHP 0.0.7

This one is a minor release. No new config options.

There are three small(-ish) changes:

  • Readable names in diffs (I changed some of these last release but didn’t get all of them)
  • Treeview paths now have clickable links for each folder, so you can jump to any parent directory easily
  • Ref icons appear in more places by commit titles

I wouldn’t normally do a release this small, but I’m planning on making some major changes to the way templates work (internally, not really much difference visible to users), which is a change that could potentially take a while, so I wanted to get these fixes out and released before I started anything.

As always, packages are available from the GitPHP page, and bugs can be reported by Mantis.

Gentoo overlay

Created a gentoo overlay. Right now it only has ebuilds for gitphp. You can set it up by doing something like:

git clone http://www.xiphux.com/git/gentoo.git /usr/local/portage/xiphux

And adding to your make.conf:
PORTDIR_OVERLAY="/usr/local/portage/xiphux"

The ebuild will handle changing the permissions of templates_c and will copy gitphp.conf.php.example to gitphp.conf.php, and will allow you to merge changes to gitphp.conf.php using etc-update when you upgrade.

Unfortunately, I don’t know of a good way to make webapp-config handle the templates_c directory, so when you unmerge the package you have to get rid of the templates_c directory manually (since by then the webserver has generated the compiled files in there, so webapp-config won’t remove it since it’s not empty).

GitPHP 0.0.6

Wasn’t really getting any bug reports, so I figured I’d just release.

There’s a README file included now. I’m no master technical writer, but it should explain what you need to know.

The config file is no longer distributed directly; it is distributed as an example file so you don’t overwrite your old config when upgrading. I recommend checking for new options that have been added to the example config that you may not have in your main config.

Changes in this release:

  • Mime type support, to display images inline. When viewing a blob, if it recognizes the mime type as an image, it will embed and display the image using a data uri rather than dumping the binary content. This is only done for images, though – there isn’t a good way to embed other binary file formats. It supports pecl-fileinfo (which was merged into PHP in 5.3), the “file” command on *nix machines, and just checking the file extension. Based on work by Trevino
  • Searching of commit logs, authors, committers, filenames, and file contents
  • Blob diffs show the filenames instead of the hashes to be more readable
  • Fixed blank entries that appeared at the end of the log/shortlog
  • Added a link to the tree from the main project list
  • Some performance fixes for projects with many commits
  • Snapshots can be sent as tar.gz or zip
  • templates_c directory created for you already, just change the permissions
  • Single tag view page… somehow I forgot this a long time ago and never noticed since I don’t usually annotate my tags

As usual, release is on the GitPHP page, the repository can be browsed here, and bugs / enhancement suggestions can be reported on Mantis.

I am working on setting up a gentoo portage overlay with a gitphp ebuild, which will install gitphp and handle stuff for you, like the templates_c permissions and config file management using etc-update.