Add ability to validate ranges of commits, and handle merge commits