summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2023-08-10 10:22:02 +0200
committerJean Delvare <jdelvare@suse.de>2023-08-10 10:22:02 +0200
commitcff443d3d151b61b412e6c4fb6e5aa8619348efa (patch)
tree032ae187dff27f60ca4e00e954f3778e38612335 /test
parent855fb4b6adb554d55b5266e36973691b6335bc71 (diff)
downloadquilt-cff443d3d151b61b412e6c4fb6e5aa8619348efa.tar.gz
diff/refresh: Quote file names which contain a space
GNU diff quotes file names which contain a space, and GNU patch expects that as well (oddly enough, only when the patch header does not include timestamps). Do the same so that the patches we generate can always be applied. Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'test')
-rw-r--r--test/space-in-filenames.test18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/space-in-filenames.test b/test/space-in-filenames.test
index 2005d00..e7dc0cf 100644
--- a/test/space-in-filenames.test
+++ b/test/space-in-filenames.test
@@ -44,13 +44,13 @@ $ quilt diff -p ab
> Index: b/a: b [c]
> ===================================================================
> --- /dev/null
-> +++ b/a: b [c]
+> +++ "b/a: b [c]"
> @@ -0,0 +1 @@
> +new line
> Index: b/foo bar
> ===================================================================
-> --- a/foo bar
-> +++ b/foo bar
+> --- "a/foo bar"
+> +++ "b/foo bar"
> @@ -1 +1 @@
> -foo
> +bar
@@ -61,13 +61,13 @@ $ cat patches/test.diff
> Index: b/a: b [c]
> ===================================================================
> --- /dev/null
-> +++ b/a: b [c]
+> +++ "b/a: b [c]"
> @@ -0,0 +1 @@
> +new line
> Index: b/foo bar
> ===================================================================
-> --- a/foo bar
-> +++ b/foo bar
+> --- "a/foo bar"
+> +++ "b/foo bar"
> @@ -1 +1 @@
> -foo
> +bar
@@ -78,13 +78,13 @@ $ cat patches/test.diff
> Index: b/a: b [c]
> ===================================================================
> --- /dev/null
-> +++ b/a: b [c]
+> +++ "b/a: b [c]"
> @@ -0,0 +1 @@
> +new line
> Index: b/foo bar
> ===================================================================
-> --- a/foo bar
-> +++ b/foo bar
+> --- "a/foo bar"
+> +++ "b/foo bar"
> @@ -1 +1 @@
> -foo
> +bar