> +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) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html