Return commit information as hash not string