Add GitInfo class.
authorDaniel Friesen <pub-github@nadir-seen-fire.com>
Fri, 23 Mar 2012 11:19:13 +0000 (04:19 -0700)
committerAntoine Musso <hashar@free.fr>
Fri, 23 Mar 2012 14:55:12 +0000 (15:55 +0100)
commit36b1172147831e97d5fac21bf098016c2c0bee84
tree930ca605faec521b6954bd3f851a4405fbe4aa13
parent164a80895a4f38262fde7995b3964cf35e100fde
Add GitInfo class.

This adds GitInfo which is used by Special:Version to get the SHA1 of
the git repo.
It's also useful for development to put blocks of config in
LocalSettings.php that only apply to branches where you are developing
large features:

  if ( GitInfo::currentBranch() == 'myrewriteproject' ) {
    // […]
  }

Change-Id: I2a76662bb40080be6556d4edf60ac6714f36a727
includes/AutoLoader.php
includes/GitInfo.php [new file with mode: 0644]
includes/specials/SpecialVersion.php