denormal/go-gitignore

bar/** seems to work differently than .gitignore

Closed this issue · 2 comments

For files like


.
├ foo
│  └ bar
│     └ some_file.txt
└ bar
   └ other_file.txt

When I ignore:

bar/**

Both foo/bar/some_file.txt and bar/other_file.txt will be ignored.

But for .gitignore, only bar/other_file.txt will be ignored.

You are correct - thanks for the bug report. I'll get a fix out as soon as I can.

This should now be fixed. Please let me know if the fix does not work as you expected.

Apologies for the delay in correcting this.