Thursday, November 4, 2010

Create diff from source and patch the target

Create diff from source:

svn di > JIRAID.patch

Patch the target

patch -p0 < JIRAID.patch


UPDATE:

Как создать патч с бинарными файлами:
svn diff --force --diff-cmd /usr/bin/diff -x "-au --binary" > JCR-1487_for_1.10.x.patch

Как применить такой файл:
patch -p0 --binary -i JCR-1487_for_1.10.x.patch

thanks to Alex Reshetnyak

No comments: