Group consecutive commits together.