Merge pull request #2328 from libgit2/rb/how-broken-can-ignores-be Improve checks for ignore containment