From: Junio C Hamano Date: Fri, 30 Aug 2013 04:13:49 GMT Subject: Re: [PATCH] check-ignore: Add option to ignore index contents Message-ID: In-Reply-To: Duy Nguyen writes: > On Fri, Aug 30, 2013 at 5:46 AM, Dave Williams > wrote: >> check-ignore currently shows how .gitignore rules would treat untracked >> paths. Tracked paths do not generate useful output. This prevents >> debugging of why a path became tracked unexpectedly unless that path is >> first removed from the index with git rm --cached >> >> This option (-i, --ignore-index) simply by-passes the check for the path >> being in the index and hence allows tracked path to be checked too. > > Maybe --no-index, already used by git-diff and git-grep. I am somewhat ashamed that I didn't think of it myself when I saw the patch, but I agree that would be a good change for consistency. > >> Whilst this behaviour deviates from the characteristics of git add and >> git status its use case is unlikely to cause any user confusion.