move git descriptor into a static library that is linked against all tools