How to unpatch a directory/file in Linux
- by softy
How can I achieve to get the unpatched file/directory form a patched one.I have applied a patch pd.patch on a directory and a patch pf.patch on a file like this :
patch -p1 < pd (in the diretory)
patch -p1 file_unpatch < pf.patch . ( will give me file_patch(patched file_unpatch))
How can i retrieve original file_unpatch and the unpatched directory.
I have figured out we can unpatch a directoy using -R option ,
patch -p1 -R < pd (in the diretory) -- will give me unpatched directory.
What about file?
RGds,
Softy