Gets the last commit message way more efficiently.