git2graph: switch to a macro for libgit->swh type conversion
this considerably speed up this (silly) job