{"thread":{"id":"11155","subject":"git-p4: Import not at root of tree.","startedAt":"2007-12-06T05:15:24Z","lastAt":"2007-12-06T05:15:24Z","messageCount":1,"participants":["David Brown"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"62102","messageId":"20071206051524.GA21207@old.davidb.org","threadId":"11155","inReplyTo":null,"subject":"git-p4: Import not at root of tree.","fromName":"David Brown","fromEmail":"git@davidb.org","sentAt":"2007-12-06T05:15:24Z","receivedAt":"2007-12-06T05:15:24Z","isPatch":false,"sender":{"key":"git@davidb.org","avatar":"https://gravatar.com/avatar/94c86a2938470a74c2eac5e2b69afc0871f79a660295c02219597aba8cb101c1?d=mp&s=160"},"body":"I'm trying to mirror a directory deep down in a very chaotically organized\nPerforce repo.  I'd like the git tree to contains the contents of this\ndirectory, but not at the root of my tree.\n\nIn other words I'd like to have something like\n\n   git-p4 clone --strip=//depot/a/b/c --destination=foo //depot/a/b/c/d\n\nResult in:\n   foo/d/...\n\nand have only a single directory 'd' at the top of the resulting git repo.\nMy current choices seem to be to put the contents of 'd' at the root, or\nhave the whole 'a/b/c/d' tree visible as what the '--keep-path' option does.\n\nIf this isn't implemented, any suggestions on the best way to go about\nimplementing this, or another way to do this.\n\nWhat I'm trying to do is emulate the behavior of a P4 client spec.  There\nis a single directory (now, there will probably be others later) that is in\na different place in Perforce and it needs to be in this directory in order\nto build.  I've tried working with a submodule, but it is cumbersome to do\nthings like bisections when there are dependencies between the trees.\n\nThanks,\nDave\n"}]}