[lug] sym link via patch

D. Stimits stimits at idcomm.com
Wed Apr 18 18:45:20 MDT 2001


I'm trying to find out if there is a way to run a diff between two
directory trees to create a patch, but such that symbolic links are
preserved. For example:

newest_version/hard_link.h
newest_version/sym_link.h (points at hard_link.h)

older_version/hard_link.h

My goal is a recursive diff such as:
diff -c -r -N oldest_version newest_version > some.patch

The problem I'm running into is that the sym link file, after running
patch to update an old tree, will be added as a hard link rather than a
sym link. Does anyone here know if it is possible to preserve sym links
with a patch?

D. Stimits, stimits at idcomm.com



More information about the LUG mailing list