libgit2/libgit2 — pull request #966 by pwkelley (2012-10-08 20:46:39+00:00)
Title: Fix a bug where ignorecase wasn't applied to ignores

There was a mistake in my previous submission for core.ignorecase support, where I was setting a flag just prior to calling a function which masked out the very bit I was trying to set! The result was that with ignorecase set, a .gitignore rule saying to ignore a.txt would not match A.txt. The file would show up as added, when it should actually be ignored.

This patch fixes the bug and adds a test case to verify correct operation and prevent future regression.