diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/space-in-filenames.test | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/test/space-in-filenames.test b/test/space-in-filenames.test index 335877a..eb0d035 100644 --- a/test/space-in-filenames.test +++ b/test/space-in-filenames.test @@ -10,6 +10,7 @@ $ quilt add foo $ quilt files > foo +$ echo foo > "foo bar" $ quilt add "foo bar" > File foo bar added to patch patches/test.diff @@ -25,6 +26,57 @@ $ quilt files > foo > foo bar +$ echo bar > "foo bar" +$ echo "new line" > "a: b [c]" +$ quilt diff -p ab +> Index: b/a: b [c] +> =================================================================== +> --- /dev/null +> +++ b/a: b [c] +> @@ -0,0 +1 @@ +> +new line +> Index: b/foo bar +> =================================================================== +> --- a/foo bar +> +++ b/foo bar +> @@ -1 +1 @@ +> -foo +> +bar + +$ quilt refresh -p ab +> Refreshed patch patches/test.diff +$ cat patches/test.diff +> Index: b/a: b [c] +> =================================================================== +> --- /dev/null +> +++ b/a: b [c] +> @@ -0,0 +1 @@ +> +new line +> Index: b/foo bar +> =================================================================== +> --- a/foo bar +> +++ b/foo bar +> @@ -1 +1 @@ +> -foo +> +bar + +$ quilt refresh -p ab --sort +> Patch patches/test.diff is unchanged +$ cat patches/test.diff +> Index: b/a: b [c] +> =================================================================== +> --- /dev/null +> +++ b/a: b [c] +> @@ -0,0 +1 @@ +> +new line +> Index: b/foo bar +> =================================================================== +> --- a/foo bar +> +++ b/foo bar +> @@ -1 +1 @@ +> -foo +> +bar + $quilt remove "a: b [c]" > File a: b [c] removed from patch patches/test.diff |