# git add -i fails to heed user's exclude settings

3 messages from 2007-11-08 to 2007-11-08. Participants: Miles Bader, Andreas Ericsson.
Thread: https://gitlist.dev/t/10721

## Miles Bader, 2007-11-08 07:56

Subject: git add -i fails to heed user's exclude settings
Message-ID: <buowsstmapt.fsf@dhapc248.dev.necel.com>
URL: https://gitlist.dev/e/buowsstmapt.fsf%40dhapc248.dev.necel.com

```
Inside git add -i, option 4 "add untracked", it doesn't seem to consider
the user's personal ignore patterns, which is _really_ annoying.

E.g., I have:

   $ git config core.excludesfile
   /home/miles/.gitignore

   $ cat /home/miles/.gitignore
   [+,#]*
   *~

   $ git status
   # On branch master
   nothing to commit (working directory clean)

   $ git add -i
              staged     unstaged path

   *** Commands ***
     1: status       2: update       3: revert       4: add untracked
     5: patch        6: diff         7: quit         8: help
   What now> 4
     1: ,l
     2: ,l.~1~
     3: AUTHORS.~1~
     4: Makefile.am.~1~
     5: config.h.in~
     6: configure.ac.~1~
     ...tons of other random backup files etc...

This makes it very hard to find files that actually need to be added!

Thanks,

-Miles

-- 
o The existentialist, not having a pillow, goes everywhere with the book by
  Sullivan, _I am going to spit on your graves_.

```

## Andreas Ericsson, 2007-11-08 09:46

Subject: Re: git add -i fails to heed user's exclude settings
Message-ID: <4732DAD8.8000702@op5.se>
URL: https://gitlist.dev/e/4732DAD8.8000702%40op5.se
In-Reply-To: <buowsstmapt.fsf@dhapc248.dev.necel.com>

```
Miles Bader wrote:
> Inside git add -i, option 4 "add untracked", it doesn't seem to consider
> the user's personal ignore patterns, which is _really_ annoying.
> 
> E.g., I have:
> 
>    $ git config core.excludesfile
>    /home/miles/.gitignore
> 
>    $ cat /home/miles/.gitignore
>    [+,#]*
>    *~
> 
>    $ git status
>    # On branch master
>    nothing to commit (working directory clean)
> 
>    $ git add -i
>               staged     unstaged path
> 
>    *** Commands ***
>      1: status       2: update       3: revert       4: add untracked
>      5: patch        6: diff         7: quit         8: help
>    What now> 4
>      1: ,l
>      2: ,l.~1~
>      3: AUTHORS.~1~
>      4: Makefile.am.~1~
>      5: config.h.in~
>      6: configure.ac.~1~
>      ...tons of other random backup files etc...
> 
> This makes it very hard to find files that actually need to be added!
> 

Which git version are you using?

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

```

## Miles Bader, 2007-11-08 10:17

Subject: Re: git add -i fails to heed user's exclude settings
Message-ID: <buor6j1m46s.fsf@dhapc248.dev.necel.com>
URL: https://gitlist.dev/e/buor6j1m46s.fsf%40dhapc248.dev.necel.com
In-Reply-To: <4732DAD8.8000702@op5.se>

```
Andreas Ericsson <ae@op5.se> writes:
> Which git version are you using?

1.5.3.5

Thanks,

-Miles

-- 
The secret to creativity is knowing how to hide your sources.
  --Albert Einstein

```
