parse commit objects