add ability to set version based on git hash

I want to version my builds based on the git revision - added a new type of gitrev.