I ended up removing the debugging code that used this, but it seems useful anyway for future debug logs.
git help
git version
Each subcommand is its own file, modeled after Phoenix's coreutils.