Re: "git add $ignored_file" fail
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- May 17, 2006, 14:49 UTC
- Message-ID
- <Pine.LNX.4.64.0605170747280.10823@g5.osdl.org>
- In-Reply-To
- <8aa486160605170641p2ab8704o@mail.gmail.com>
On Wed, 17 May 2006, Santi wrote:
> > In the other way, now I find the value of being able to say: > > $ git add t*
Exactly. The shell will expand the path, so the fact that the path exists on the command line does not mean that "git add" should just trust it.
> and be sure that it does not add an ignored file. Unfortunately > git-add cannot distinguish between both. So what I propose is to > document it explicitly, something like:
Documenting this more clearly (and the workaround of forcing it with "git-update-index --add" by hand) is certainly a good idea.
Linus