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

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

From
Miles Bader <miles.bader@necel.com>
Date
Nov 8, 2007, 07:56 UTC
Message-ID
<buowsstmapt.fsf@dhapc248.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_.
Next: Andreas Ericsson
Message 1 of 3 in “git add -i fails to heed user's exclude settings”
  1. Miles BaderNov 8, 2007
  2. Andreas EricssonNov 8, 2007
  3. Miles BaderNov 8, 2007

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.