Added behavior: "Polling ignores commits with certain messages"

If you need test cases, please point what and where i should implement.
Should it be optimized to use matcher with precompiled Pattern?