Move DigestCommit construction to a separate function.
Extract the first line of the commit message as the title.