diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -7,14 +7,16 @@ offsets. You want convenient, non-tedious way to get perfectly fitting one. How to achieve it: $ patch-fix-offsets -p1 wrongoffsets.patch > goodoffsets.patch +$ # alternatively in pipe with recountdiff for extra sanity Alternatives: 1. apply patch and rediff (possibly changing the format of the patch!) -$ cp -R <project within which to apply the patch>{,.orig} +$ cp -pR ${PROJECT_DIR}{,.orig} $ patch -p1 <wrongoffsets.patch -$ diff -urN <project within which to apply the patch>{.orig,} > goodoffsets.patch +$ diff -urN ${PROJECT_DIR}{.orig,} > goodoffsets.patch +$ mv ${PROJECT_DIR}{.orig,} TBD: wiggle, merge, ... |