Re: [PATCH 5/5] git-add: add ignored files when asked explicitly.
On Mon, 25 Dec 2006, Junio C Hamano wrote:
Show 9 quoted lines
> 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