Re: [RFC/PATCH] git-add: Don't exclude explicitly-specified tracked files
- From
Greg Brockman <gdb@mit.edu>
- Date
- Aug 11, 2010, 18:36 UTC
- Message-ID
- <AANLkTinbMHDa6P8N4Mne34rMkmzzbrpm0osd2LRbr-Jv@mail.gmail.com>
- In-Reply-To
- <7vmxstypot.fsf@alter.siamese.dyndns.org>
Show 7 quoted lines
> What should happen if the user did these instead, after adding "dir" as an > ignored entry, and adding dir/file but not dir/untracked to the index? > > (1) git add dir/file dir/untracked ; explicitly named > (2) git add dir/* ; have shell glob--same as (1) > (3) git add "dir/*" ; have git glob > (4) git add dir ; have git recurse
In all four cases, the output I get is: """ The following paths are ignored by one of your .gitignore files: dir Use -f if you really want to add them. fatal: no files added """
Note that this is also the output if you run
(5) rm dir/untracked && git add "dir/*"
Greg