Thread (12 messages) flat view 12 messages, 4 authors, 2016-06-15

Re: [PATCH 3/3] t3700-add: added test for --exclude option

From: Torsten Bögershausen <hidden>
Date: 2016-06-15 23:04:09

+test_expect_success 'Test that "git add --exclude" works' '
+	touch foo &&
+	touch bar &&
can be written shorter as
        >foo &&
	>bar &&
+	git add --exclude="bar" . &&
Side question:
Do we need "" here ?
Or should we test files with white space as well, like this:
        >foo &&
	>bar &&
	>"b a z" &&
    	git add --exclude="bar" --exclude="b a z" . &&
	echo bar >expect &&
	git ls-files >actual &&
	test_cmp expect actual
(Which doesn't use ! grep, but test_cmp, which will give more information when
the test case does not pass)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help