Added check for more than one commit before prompting