Format git log to include only commit shas