Commit b64519b
authored
patch: reduce Patch::Ed::apply()
* Split personality: I spawn an external ed command, but also I process ed diffs myself
* On systems where ed is available, users have the option to apply an ed-diff using ed instead of patch
* In my view the point of patch is to directly process edits from diff files, not act as a wrapper around an external editor
* ed-diffs are also not very common so it's even less important to maintain this external-ed code within patch
* This change will help to expose issues with processing ed-diffs, which would be masked by the code not being exercised1 parent 676ccde commit b64519b
1 file changed
+0
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
943 | 943 | | |
944 | 944 | | |
945 | 945 | | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | | - | |
962 | | - | |
963 | | - | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
979 | 946 | | |
980 | 947 | | |
981 | 948 | | |
| |||
0 commit comments