How can I extract the commit message (and only/exactly the commit message) of a commit?
git show https://git-scm.com/docs/git-show doesn't seem to have an option for that
I could do git cat-file -p <commit_hash> and then search for the first \n\n and take everything after that until EOF, or I could do git log --format=%B -n 1 <commit_hash> but what is likely going to be forward compatible with future git versions? (of course, there's never a guarantee for that, but there's probably a 'best way' of doing this)