From: Dmitry Smirnov Date: Wed, 11 Nov 2009 10:21:18 GMT Subject: Re: Git drawbacks? Message-ID: In-Reply-To: Dmitry Smirnov gmail.com> writes: Ok, I have heard a lot of perfect words about Git. I'm almost on your side :-) Just need some advice on (small for Git, I hope) problem. I'm trying to import P4 depot into Git (for mirroring purpose). It seems a non-trivial task with the current git-p4 script. Perhaps, I had selected a wrong way: i'm trying to import some client. In fact, as I said in previous mails, typically I have few similar clients. So, maybe it is simpler to import some set of branches (which I suppose a little bit simpler with git-p4). Unfortunaley, the directory structure of the depot differs from client's (i.e. working tree differs from repository tree). For example, //depot/component/version could be mapped to the /component. Thus if I import //depot/component/version1 and //depot/component/version2 as is, I should be able to checkout either version1 or version2. Note that there could be few components in the same working tree: //depot/component1/version1 (mapped to /component1) //depot/component2/versionX (mapped to /component2) //depot/component3/versionY (mapped to /component3) With Perforce, there could also be a more complex mappings, but maybe we will discuss it later). Is there any way to make this mapping with Git? Should I invent some kind of tool like 'repo' or there is a simpler way? Dmitry