Hi all,

The manual page of patch states:

CAVEATS
       Context diffs cannot
reliably  represent  the  creation  or
       deletion  of  empty  files
,  empty  directories, or special
       files such
as  symbolic  links.   Nor  can  they  represent
       changes  to  fil
e  metadata like ownership, permissions, or
       whether one file is a
hard link  to  another.   If  changes
       like these are also
required, separate instructions (e.g. a
       shell
script)  to  accomplish  them  should  accompany  the
       patch.

This was written long ago. Since then, support was added for some git
extensions to the unified patch format. I know that at least changing
the permissions of existing file, and setting the permissions on new
files, can be done that way. I don't know about the rest. Shouldn't
that be mentioned in this section, as an alternative to a shell script?

Thanks,
-- 
Jean Delvare
SUSE L3 Support

Reply via email to