Thread (39 messages) 39 messages, 7 authors, 2016-08-11

Re: globs in partial checkout?

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


On Sun, 10 Dec 2006, Michael S. Tsirkin wrote:
I'm trying to checkout some files after doing "clone -n".
Should using globs there work? It doesn't:
Not historically at all. "git checkout" needed exact filenames in older 
versions.

However, since about 1.4.4.1 or so, it now does the same filename 
expansion as "git add" etc does, which means that you can give it a 
directory name and it will check out everything under that directory, or 
you can give it a pattern, and it should glob it. But it sounds like you 
may have a slightly older version of git (the pathname matching really is 
fairly recent).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help