unclebob/fitnesse — pull request #130 by amolenaar (2012-10-15 08:02:43+00:00)
Title: Store FitNesse version in META-INF, instead of modifying the source code

Hi,

This is a little personal frustration: every time I run FitNesse the files `FitNesseVersion.java` and `FitNesseRoot/properties` are modified. Those modifications have to be undone when changing branches or committing code.

With this pull request, the version is generated using a "git describe" command. This command uses the most recent tag, an offset (# commits) and a hash to identify the build.

This means that:

* individual builds can be identified
* builds are tagged on the label and commit (e.i. I can generate last years release without the need to manually provide the version)
* pull requests will be easier, since before mentioned files have not changed (they tend to cause merge conflicts)

Versions will have the format `v20111025-570-g537f7ff` (format: most recent tag - commit offset - commit hash). In case a tags is set (release) only the tag name is used (`v10121015`).