summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-03-12 15:14:29 +0100
committerAndreas Gruenbacher <agruen@suse.de>2009-03-12 15:14:29 +0100
commit1adb4535a31d825f10a5bd1ef10b52a7425073bd (patch)
tree1a9a12d04c92d4d93a4b7d8a09af635a8f93fa63 /NEWS
parentbcce1233902dc7a94623b3a90cd7920c44f22474 (diff)
downloadpatch-1adb4535a31d825f10a5bd1ef10b52a7425073bd.tar.gz
Import of patch-2.3.tar.gzv2.3
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS51
1 files changed, 51 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 7022862..f708cef 100644
--- a/NEWS
+++ b/NEWS
@@ -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).