Re: Cannot negate `*` ignore pattern for directory with space in the name

2018-09-18 Thread Victor Engmark
On 19/09/2018 05:59, Duy Nguyen wrote: > On Tue, Sep 18, 2018 at 6:13 AM Victor Engmark > wrote: […] >> $ cat > .gitignore << EOF >>> * >>> !foo bar >>> !foo\ bar >>> !"foo bar" > > No need to quote, either with double quotes or backslashes. They are > interpreted as literal " and \ Thanks! I

Re: Cannot negate `*` ignore pattern for directory with space in the name

2018-09-18 Thread Duy Nguyen
On Tue, Sep 18, 2018 at 6:13 AM Victor Engmark wrote: > > To reproduce (from ): > > $ cd "$(mktemp --directory)" > $ mkdir foo\ bar > $ touch foo\ bar/test > $ git init > Initialized empty Git repository in /tmp/tmp.iGmBR6y2xR/.git/ > $ git status

Cannot negate `*` ignore pattern for directory with space in the name

2018-09-17 Thread Victor Engmark
To reproduce (from ): $ cd "$(mktemp --directory)" $ mkdir foo\ bar $ touch foo\ bar/test $ git init Initialized empty Git repository in /tmp/tmp.iGmBR6y2xR/.git/ $ git status --short ?? foo bar/ $ cat > .gitignore << EOF > * > !foo bar > !foo\ bar >