Replace custom GIT_IS_REPO() and GIT_WC_INFO() macros
- git rev-list -1 HEAD to check
- if it is a git repository
- retrieve the latest hash
- git name-rev --name-only <hash> to retrieve the revision name
Removed obsolete and undocumented result variables.
Added documentation for short id.