Join the DZone community and get the full member experience.Join For Free
Making Patch -- to represent the addition of a new file, diff it against /dev/null.
diff -Naur test.old test.cpp > test.patchApply Patch
patch test.cpp test.patchUndo Patch
patch -R test.cpp test.patch
Opinions expressed by DZone contributors are their own.