apply: do not patch lines that were already patched