diff options
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 51 |
1 files changed, 51 insertions, 0 deletions
@@ -3,6 +3,57 @@ Known problems: * The diffutils 2.7 documentation for `patch' is obsolete; this should be fixed in diffutils 2.8. Until then, see `patch --help' or `man patch'. +Changes in version 2.3: + +* Unless the POSIXLY_CORRECT environment variable is set: + + - `patch' now distinguishes more accurately between empty and + nonexistent files if the input is a context diff. + A file is assumed to not exist if its context diff header + suggests that it is empty, and if the header timestamp + is within 24 hours of 1970-01-01 00:00:00 UTC. + - Files that ``become nonexistent'' after patching are now removed. + When a file is removed, any empty ancestor directories are also removed. + +* Files are now automatically gotten from RCS and SCCS + if the -g or --get option is specified, + or if the PATCH_GET environment variable is set + and the -G or --no-get option is not specified. + +* If the PATCH_VERSION_CONTROL environment variable is set, + it overrides the VERSION_CONTROL environment variable. + +* The method used to intuit names of files to be patched is now as follows: + + - Take the old and new names from the context header if present, + and take the index name from the `Index:' line if present. + Consider the file names to be in the order (old, new, index). + - If some named files exist, use the first one if POSIXLY_CORRECT is set, + the best one otherwise. + - If no named files exist, some names are given, POSIXLY_CORRECT is not set, + and the patch appears to create a file, then use the best name + requiring the creation of the fewest directories. + - Otherwise, ask the user for a file name. + + The ``best'' of a nonempty list of file names is defined as follows: + - Take the names with the fewest path name components; + of those, take the names with the shortest basename; + of those, take the shortest names; + of those, take the first name. + +* The new --binary option makes `patch' read and write files in binary mode. + This option has no effect on POSIX-compliant hosts; + it is useful only in on operating systems like DOS + that distinguish between text and binary I/O. + +* The environment variables TMP and TEMP are consulted for the name of + the temporary directory if TMPDIR is not set. + +* A port to MS-DOS and MS-Windows is available; see the `pc' directory. + +* Backup file names are no longer ever computed by uppercasing characters, + since this isn't portable to systems with case-insensitive file names. + Changes in version 2.2: * Arbitrary limits removed (e.g. line length, file name length). |