The strip_prefix() function works on the traditional parsed representation, but there's no equivalent for the lossless edit module. It would be useful to be able to adjust or normalize path prefixes (e.g. adding or removing a//b/ prefixes) while preserving all other formatting in the patch.
The
strip_prefix()function works on the traditional parsed representation, but there's no equivalent for the lossless edit module. It would be useful to be able to adjust or normalize path prefixes (e.g. adding or removinga//b/prefixes) while preserving all other formatting in the patch.