git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: globs in partial checkout?

From
Linus Torvalds <torvalds@osdl.org>
Date
Dec 10, 2006, 20:13 UTC
Message-ID
<Pine.LNX.4.64.0612101209370.12500@woody.osdl.org>
In-Reply-To
<20061210200029.GF1708@mellanox.co.il>
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).

Previous: Michael S. TsirkinNext: Michael S. Tsirkin
Message 2 of 3 in “globs in partial checkout?”
  1. Michael S. TsirkinDec 10, 2006
  2. Linus TorvaldsDec 10, 2006
  3. Michael S. TsirkinDec 10, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.