git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] check-ignore: Add option to ignore index contents

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 30, 2013, 04:13 UTC
Message-ID
<xmqqmwnz24ua.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CACsJy8COEwA0hSf4yiTETqA6UBRhcCviayrhnynw23bTC-3foQ@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 11 quoted lines
> On Fri, Aug 30, 2013 at 5:46 AM, Dave Williams
> <dave@opensourcesolutions.co.uk> 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 <path>
>>
>> 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.
Previous: Duy NguyenNext: Junio C Hamano
Message 4 of 6 in “check-ignore: Add option to ignore index contents”
  1. check-ignore: Add option to ignore index contentsDave Williams, Aug 29, 2013
  2. Adam SpiersAug 30, 2013
  3. Duy NguyenAug 30, 2013
  4. Junio C HamanoAug 30, 2013
  5. Junio C HamanoAug 30, 2013
  6. Johannes SixtAug 30, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.