Push through @JacekLach's refactoring of selecting the selected diffs into the trigger logic.