From: Torsten Bögershausen Date: Sun, 15 Mar 2015 18:00:58 GMT Subject: Re: [PATCH 3/3] t3700-add: added test for --exclude option Message-ID: <5505C8DA.2050500@web.de> In-Reply-To: <1426427437-23370-1-git-send-email-kuleshovmail@gmail.com> > +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)