summaryrefslogtreecommitdiffstats
path: root/test/space-in-filenames.test
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2012-02-01 21:01:26 +0100
committerJean Delvare <jdelvare@suse.de>2012-02-01 21:01:26 +0100
commit1df79c3c1d65c05472fdc08564efefc37c221d25 (patch)
tree19b78321943cd5c79aa2cd871fa1f525c341c1a0 /test/space-in-filenames.test
parent08df4ffdf4d2e8b197488fbd07c1b26e9a4dc596 (diff)
downloadquilt-1df79c3c1d65c05472fdc08564efefc37c221d25.tar.gz
grep: Accept file names with spaces
This is a continuation of Yasushi SHOJI's initial work of fixing support for file names with spaces. This time I fixed support in the grep command. This is particularly important because the grep command operates on all files in the work tree, even if they aren't touched by any patch, so the chances that one of them has a space in its name is greater. As before, no guarantee is made that all options are covered, but this should be a good starting point.
Diffstat (limited to 'test/space-in-filenames.test')
-rw-r--r--test/space-in-filenames.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/space-in-filenames.test b/test/space-in-filenames.test
index eb0d035..fa0ddf8 100644
--- a/test/space-in-filenames.test
+++ b/test/space-in-filenames.test
@@ -77,6 +77,13 @@ $ cat patches/test.diff
> -foo
> +bar
+$ quilt grep bar
+> foo bar:bar
+$ quilt grep new
+> a: b [c]:new line
+$ quilt grep " "
+> a: b [c]:new line
+
$quilt remove "a: b [c]"
> File a: b [c] removed from patch patches/test.diff