patch

patch -p0 < my_new_patch.diff
patch -p1 < my_new_patch.diff
patch --dry-run -p1 < my_new_patch.diff