# feature suggestion

1 messages from 2013-06-07 to 2013-06-07. Participants: Daniel Krikun.
Thread: https://gitlist.dev/t/34047

## Daniel Krikun, 2013-06-07 08:59

Subject: feature suggestion
Message-ID: <CAMohcw0exP7pDnas4zceoKEADs58axEHYUd6y_MtSoV5=6rMDA@mail.gmail.com>
URL: https://gitlist.dev/e/CAMohcw0exP7pDnas4zceoKEADs58axEHYUd6y_MtSoV5%3D6rMDA%40mail.gmail.com

```
Hi all,

Problem (scenario):

1. A file `file.xyz` has been added and commited
2. Some time after, let's say `*.xyz` is added to `.gitignore`
(probably by another contributor)
    Nobody notices that `file.xyz` is already tracked by git because
the file is not modified.
3. Another person accidentally changes `file.xyz` (may be it some
local config etc.), but no problem it is ignored anyway,... wait, why
does it shows up in `git status` as modified? Maybe it is not in
.gitignore? ... no it is... you get the point.


The suggestion is that when the .gitignore is updated, some kind of
`git ls-files --others -i --exclude-standard` is rerun and if there
are tracked files that are ignored due to the last update to
.gitignore an appropriate warning is shown.
This will eliminate the described surprise factor.

Sincerely,

--
Daniel Krikun

```
