Adding flexible config of how many commits to keep