add ability to disable processing of not distinct commits

Added option process_distinct, that shows, if only distinct commits should be processed. This allows to avoid applying one command to issue several times. 
Also tests for this new feature were added