Thread (3 messages) flat view 3 messages, 3 authors, 2016-08-11

Re: On removing files and "git-rm is pointless"

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-08-11 20:08:19


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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help