{"thread":{"id":"43602","subject":"Re: globs in partial checkout?","startedAt":"2006-12-10T20:00:29Z","lastAt":"2006-12-10T21:07:13Z","messageCount":3,"participants":["Michael S. Tsirkin","Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"298713","messageId":"20061210200029.GF1708@mellanox.co.il","threadId":"43602","inReplyTo":"e5bfff550612101151r5e77ddc0w8f61f36fc1f2920e@mail.gmail.com","subject":"globs in partial checkout?","fromName":"Michael S. Tsirkin","fromEmail":"mst@mellanox.co.il","sentAt":"2006-12-10T20:00:29Z","receivedAt":"2006-12-10T20:00:29Z","isPatch":false,"sender":{"key":"mst@kernel.org","avatar":null},"body":"I'm trying to checkout some files after doing \"clone -n\".\nShould using globs there work? It doesn't:\n\nst@mst-lt:~/scm/wireless-dev$ git checkout master 'include/net/ieee80211*.h'\nerror: pathspec 'include/net/ieee80211*.h' did not match any file(s) known to\ngit.\nDid you forget to 'git add'?\nmst@mst-lt:~/scm/wireless-dev$ git ls-tree master -- include/net/ | grep iee\n100644 blob b174ebb277a96668f058e469b0753503c34f164b include/net/ieee80211.h\n100644 blob eb476414fd726701d032e9e517751b9d3f7e38df include/net/ieee80211_crypt.h\n100644 blob 429b73892a5fc62f91e4a4b05da40859604fa791 include/net/ieee80211_radiotap.h\n100644 blob 617b672b1132e7fa3ff5f9c940b1692520dc8483 include/net/ieee80211softmac.h\n100644 blob 4ee3ad57283fa3370bd2d1f71cd6ae559b556dbc include/net/ieee80211softmac_wx.h\nmst@mst-lt:~/scm/wireless-dev$ git checkout master include/net/ieee80211.h\ninclude/net/ieee80211_crypt.h include/net/ieee80211_radiotap.h\ninclude/net/ieee80211softmac.h include/net/ieee80211softmac_wx.h\n\n\n-- \n"},{"id":"297875","messageId":"Pine.LNX.4.64.0612101209370.12500@woody.osdl.org","threadId":"43602","inReplyTo":"20061210200029.GF1708@mellanox.co.il","subject":"Re: globs in partial checkout?","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2006-12-10T20:13:42Z","receivedAt":"2006-12-10T20:13:42Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\n\nOn Sun, 10 Dec 2006, Michael S. Tsirkin wrote:\n>\n> I'm trying to checkout some files after doing \"clone -n\".\n> Should using globs there work? It doesn't:\n\nNot historically at all. \"git checkout\" needed exact filenames in older \nversions.\n\nHowever, since about 1.4.4.1 or so, it now does the same filename \nexpansion as \"git add\" etc does, which means that you can give it a \ndirectory name and it will check out everything under that directory, or \nyou can give it a pattern, and it should glob it. But it sounds like you \nmay have a slightly older version of git (the pathname matching really is \nfairly recent).\n\n"},{"id":"295811","messageId":"20061210210713.GC9205@mellanox.co.il","threadId":"43602","inReplyTo":"Pine.LNX.4.64.0612101209370.12500@woody.osdl.org","subject":"Re: globs in partial checkout?","fromName":"Michael S. Tsirkin","fromEmail":"mst@mellanox.co.il","sentAt":"2006-12-10T21:07:13Z","receivedAt":"2006-12-10T21:07:13Z","isPatch":false,"sender":{"key":"mst@kernel.org","avatar":null},"body":"> However, since about 1.4.4.1 or so, it now does the same filename \n> expansion as \"git add\" etc does, which means that you can give it a \n> directory name and it will check out everything under that directory, or \n> you can give it a pattern, and it should glob it. But it sounds like you \n> may have a slightly older version of git (the pathname matching really is \n> fairly recent).\n\nSeems like this was post-1.4.4.1. Just updated to 1.4.4.2 and this works for me now,\nthanks.\n\n-- \n"}]}