From: Nicolas Pitre Date: Mon, 25 Dec 2006 19:57:22 GMT Subject: Re: [PATCH 5/5] git-add: add ignored files when asked explicitly. Message-ID: In-Reply-To: <7vslf3khsc.fsf@assigned-by-dhcp.cox.net> On Mon, 25 Dec 2006, Junio C Hamano wrote: > An alternative is to use the mechanism I added here to _detect_ > the attempt to add an ignored file with explicitly spelled out > pathspec, and issue an info message that says something like: > > Path 'xyzzy/filfre.o' is not being ignored by one of > your .gitignore files. If you really want to add it, > please add this entry to .gitignore file: > > !/xyzzy/filfre.o What about this instead: Path 'xyzzy/filfre.o' should be ignored according to one of your .gitignore files. If you really want to add it, you must use the -f flag. Nicolas