Re: On removing files and "git-rm is pointless"
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Dec 2, 2006, 21:33 UTC
- Message-ID
- <Pine.LNX.4.64.0612021330070.3476@woody.osdl.org>
- In-Reply-To
- <200612022059.kB2Kx565009646@laptop13.inf.utfsm.cl>
On Sat, 2 Dec 2006, Horst H. von Brand wrote:
> > The command should never even see the '*' here. Globbing is handled > (uniformly) by the shell. Don't loose that.
Git supprts an extra level of globbing.
In the kernel tree, try the difference between these two command lines:
git ls-files fs/*.c git ls-files 'fs/*.c'
and enjoy.
It's _very_ useful for a number of programs (including "git add") but I find it _especially_ useful for something like
git grep jiffies -- '*.h'
where the git-level globbign is important.
Not all git programs do that globbing, but many do.