when building from a version-tagged commit with a clean tree, omit the
redundant git commit hash from the libp2p user agent string, saving
bytes in HTTP requests and libp2p identify. `ipfs version --commit`
still reports the full commit hash.
before (tagged release): kubo/0.37.0/6898472
after (tagged release): kubo/0.37.0
non-tagged and dirty builds are unaffected.
With this command we will get hash information as well as information if
build was made using uncommited files.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>