extract wanted data from commit in one go