Extract the first line of a commit as the title

should fix https://meta.discourse.org/t/22396