nulltoken/libgit2sharp — pull request #8 by nulltoken (2012-03-31 20:54:23+00:00)
Title: Add Repository.Version static property

This property returns a string containing the LibGit2Sharp version number, the commit hash it's been built against (if available), the libgit2 commit hash and the processor architecture.

Format is as follow:
Major.Minor.Patch-LibGit2Sharp_abbrev_hash-libgit2_abbrev_hash (x86|amd64)

The CI server will be tweaked in order to pass the commit hash to the build script and publish artifacts. NuGet packages will be built from assemblies fed with the commit hash as well.

For instance, running `Repository.Version` should return **0.8.0-1a2681c-a17e882 (x86)** on a 32bits platform and **0.8.0-1a2681c-a17e882 (amd64)** on a 64bits platform.

Against a local build, as the libgit2sharp commit hash is not available, it will return **0.8.0-unknown-a17e882 (x86)** in a 32bits environment.

Of course, this is mostly a helper to ease the fixing of issues.