GoogleCloudPlatform/kubernetes — pull request #1251 by filbranden (2014-09-09 23:26:44+00:00)
Title: Use just GitVersion for the -version output

It turns out that that's simply the most useful information about the version that was built.

For a git tree, it includes information about the closest release, number of commits since the release, enough of the SHA1 to find the exact commit and whether the tree was clean or dirty at build time.

For a build from tarball, it will include information of which release was built and, when using a tarball from a not released commit (e.g. downloading "master.tar.gz" from GitHub, not recommended!) it will include the -dev prefix to indicate that was not an official release. (That's as good as we can get with it.)

If additional information is required, it can be found with -version=raw.

I tested most use cases, I didn't test tarball with official version since that requires additional commits, at the time we release v0.3 I'll have a chance to experiment with that in my fork before we push the tag upstream.

Cheers,
Filipe