How to unpatch a directory/file in Linux

Posted by softy on Stack Overflow See other posts from Stack Overflow or by softy
Published on 2012-11-02T04:58:06Z Indexed on 2012/11/02 5:00 UTC
Read the original article Hit count: 536

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about linux

Related posts about patch