Get and format commit data