summaryrefslogtreecommitdiff
path: root/tests/quoted-filenames
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@linbit.com>2012-08-11 11:09:11 +0200
committerAndreas Gruenbacher <agruen@linbit.com>2012-08-11 11:09:11 +0200
commit66aeedee12d621113fe0906b7cbd124cc4e9ebd5 (patch)
treebf849e2ff9d3241e090d2df13929ed37f5f3c4fe /tests/quoted-filenames
parent9a37354cc6e56a18e297087a861ee7435e7fb9c6 (diff)
downloadpatch-66aeedee12d621113fe0906b7cbd124cc4e9ebd5.tar.gz
Support double-quoted filenames in all context diff formats
* src/util.c (fetchname): Always recognize double-quoted filenames. * src/util.h (fetchname): Update prototype. * src/pch.c (intuit_diff_type): Update calls to fetchname(). * tests/quoted-filenames: Change to a normal unified diff. * NEWS: Update.
Diffstat (limited to 'tests/quoted-filenames')
-rw-r--r--tests/quoted-filenames6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/quoted-filenames b/tests/quoted-filenames
index 92aae6c..5fb9f12 100644
--- a/tests/quoted-filenames
+++ b/tests/quoted-filenames
@@ -18,8 +18,6 @@ use_tmpdir
# \ / : * ? " < > |
cat > d.diff <<EOF
-diff --git "\\t \\040" "\\t \\040"
-index 5626abf..f719efd 100644
--- "\\t \\040"
+++ "\\t \\040"
@@ -1 +1 @@
@@ -29,3 +27,7 @@ EOF
ncheck 'echo one > " "'
ncheck 'patch -s -p0 < d.diff'
+
+check 'cat " "' <<EOF
+two
+EOF