main: include git information in the version string
Adapted from rustfmt's implementation here:
https://github.com/rust-lang-nursery/rustfmt/commit/5361f611107bdaed67dfeffe3e20aad082556ef7
with the change that instead of walkdir
, git ls-files
and the
.git/HEAD
files are watched specifically.
Fixes #17 (closed).