I am currently getting my commit message for a certain commit hash by using this below:
hash='b55da97'
git log --pretty=oneline ${hash} | grep "${hash}" | awk '{ print $2 }'
These seems extremely inefficient though. Is there a smarter or cheaper way to do this, or am I stuck with grepping and awking?
git log -n 1 --pretty=format:%s $hash
– Gerick