From: Johannes Sixt Date: Sun, 09 Sep 2012 19:03:14 GMT Subject: Re: [PATCH/RFC] blame: respect "core.ignorecase" Message-ID: <504CE7F2.9010306@kdbg.org> In-Reply-To: <1347210113-27435-1-git-send-email-ralf.thielow@gmail.com> Am 09.09.2012 19:01, schrieb Ralf Thielow: > If "core.ignorecase" is true, "git blame" fails > when the given path differs to the real path in case > sensitivity. ... > + dir = opendir(res.buf); ... > + struct dirent *ent = readdir(dir); ... > + if (!strcasecmp(p.buf, ent->d_name)) { I don't think this is how core.ignorecase is intended to work. It does not trigger case-insensitive lookup in the worktree (this is still done by the OS), but it does a case-insensitive lookup in the index. That is, given a worktree entry 'readme', it allows to find the index entry 'README'. IMO, it is only correct that 'git blame file' operates on 'FILE' if 'FILE' exists in the index, and in only that case, it does not matter how the 'file' is named in the worktree. -- Hannes