[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-diffutils] diff: support for --no-dereference option
From: |
Paul Eggert |
Subject: |
Re: [bug-diffutils] diff: support for --no-dereference option |
Date: |
Sat, 07 Jan 2012 12:51:45 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111124 Thunderbird/8.0 |
Thanks for the patch! I would like to fold something like
this in.
Two thoughts.
First, many programs (e.g., cp) have three options:
-H -L -P. These distinctions seem to be useful for diff.
This suggests that the new --no-dereference flag should
be -P, not -h. -h has a subtly different meaning from
-P, in programs like chown.
Changing the patch to use -P instead of -h should be easy;
we can implement -H and -L later as need be.
Second, and more important, the output of --no-dereference
should be something that we can feed to an (augmented)
'patch' so that it can alter a copy of the old tree,
symlinks and all, so that it looks like the new tree,
symlinks and all. This suggests that the output of
'diff' needs to contain the symlink contents, and needs
to distinguish symlinks from regular files, so that 'patch'
can reconstruct the symlinks.
- [bug-diffutils] diff: support for --no-dereference option, Bruno Haible, 2012/01/07
- Re: [bug-diffutils] diff: support for --no-dereference option,
Paul Eggert <=
- Re: [bug-diffutils] diff: support for --no-dereference option, Bruno Haible, 2012/01/07
- Re: [bug-diffutils] diff: support for --no-dereference option, Paul Eggert, 2012/01/08
- Re: [bug-diffutils] diff: support for --no-dereference option, Bruno Haible, 2012/01/08
- Re: [bug-diffutils] diff: support for --no-dereference option, Paul Eggert, 2012/01/08
- Re: [bug-diffutils] --speed-large-files, Bruno Haible, 2012/01/08
- Re: [bug-diffutils] --speed-large-files, Paul Eggert, 2012/01/08
Re: [bug-diffutils] diff: support for --no-dereference option, Andreas Gruenbacher, 2012/01/08