From 3e234c40d29d3ccf01d288c7e56488b259199153 Mon Sep 17 00:00:00 2001 From: Andreas Gruenbacher Date: Tue, 5 Oct 2010 19:21:35 +0200 Subject: Only recognize quited filename in the "diff --git" format * src/util.c: Add a maybe_quoted parameter to fetchname. * src/pch.c: Only recognize quited filename in the "diff --git" format, at least for now. * tests/quoted-filenames: Update accordingly. * NEWS: Update accordingly. --- NEWS | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index f46f12d..c727782 100644 --- a/NEWS +++ b/NEWS @@ -4,10 +4,11 @@ + In the "diff --git" format, all the patches are relative to the original state of the files to patch, allowing things like criss-cross renames. GNU patch will currently fail for such patches. -* Support for double-quoted filenames: when a filename in a context diff - starts with a double quote, it is interpreted as a C string literal. The - escape sequences \\, \", \a, \b, \f, \n, \r, \t, \v, and \ooo (a three-digit - octal number between 0 and 255) are recognized. +* Support for double-quoted filenames in the "diff --git" format: when a + filename in a context diff starts with a double quote, it is interpreted + as a C string literal. The escape sequences \\, \", \a, \b, \f, \n, \r, + \t, \v, and \ooo (a three-digit octal number between 0 and 255) are + recognized. * Refuse to patch read-only files by default, or at least warn when patching such files with --force or --batch. * Refuse to apply a normal patch to a symlink. (Previous versions of patch -- cgit v1.2.1