proper grouping of commits by time