sebastianbergmann/phpunit — pull request #654 by claylo (2012-09-19 07:14:32+00:00)
Title: Support git information in version display.

As we discussed in #522 a few weeks ago, this patch allows display of the current git version in PHPUnit's version string.

* If installed via PEAR, the replaced `@package_version@` string will be used
* If running via git checkout, the current checkout will be displayed. For example, `PHPUnit 3.7.0-1-g47cb3be by Sebastian Bergmann.`
* If running via a composer installation, a tagged release will show the tag (same value as `@package_version@` from a PEAR install), and a "dev-master" checkout will show the git information.
* If `@package_version@` hasn't been replaced, but no git executable is found, use `@package_version@` anyway.

**still needed:** a `which git` equivalent for Windows platforms?