From: Jeff King Date: Tue, 13 Sep 2011 16:05:20 GMT Subject: Re: What's cooking in git.git (Sep 2011, #04; Mon, 12) Message-ID: <20110913160520.GA28634@sigill.intra.peff.net> In-Reply-To: On Tue, Sep 13, 2011 at 10:15:15AM -0500, Brandon Casey wrote: > ...and I see there is already an fnmatch_icase() in dir.c which adds > FNM_CASEFOLD when the global var ignore_case is set. So, maybe it's as > easy as: > [...] > - return (fnmatch(pattern, basename, 0) == 0); > + return (fnmatch_icase(pattern, basename, 0) == 0); OK, wow. That's exactly the level of easy I was hoping for. Do you want to roll that up into a patch with some tests? -Peff