This blog post is now available at https://tinkerprojects.xyz/nerd-stuff/returning-a-git-log-value-for-use-in-a-script/