Currently apply_exact() either applies a patch or fails. It would be useful to have a dry-run mode that reports which hunks would apply and which wouldn't, and a fuzzy application mode that tries to match context lines with some tolerance (like patch --fuzz). This would let consumers check patch applicability without modifying anything.
Currently
apply_exact()either applies a patch or fails. It would be useful to have a dry-run mode that reports which hunks would apply and which wouldn't, and a fuzzy application mode that tries to match context lines with some tolerance (likepatch --fuzz). This would let consumers check patch applicability without modifying anything.