add ability to disable processing of not distinct commits
added tests