Hi,

    I am not sure whether I should ask this quesiton here. I am trying 
'diff' and 'patch', and have encounter a problem.

    I have create two directories as follows:

old
|-- musician
|   `-- name
`-- writer

new
|-- musician
|   `-- name
`-- writer
    `-- name

Then,  'diff' is used to compare the two directories and generated a diff.

                            diff -Nru old new > patch.diff

Then, 'patch' is used to make 'old' identical to 'new'.

                            patch -p1 --dir old < patch.diff

In the following, I want to 'old' revert to its origin:

                            patch -p1 -R --dir old < patch.diff

The structruct of 'old' has turn to the following:


old
`-- musician
    `-- name

It obvious that a subdirectory 'writer' has disappeared. I wonder some way 
to keep 'writer' from being deleted. Thx.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to