git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-p4: Import not at root of tree.
@ 2007-12-06  5:15 David Brown
  0 siblings, 0 replies; only message in thread
From: David Brown @ 2007-12-06  5:15 UTC (permalink / raw)
  To: Git

I'm trying to mirror a directory deep down in a very chaotically organized
Perforce repo.  I'd like the git tree to contains the contents of this
directory, but not at the root of my tree.

In other words I'd like to have something like

   git-p4 clone --strip=//depot/a/b/c --destination=foo //depot/a/b/c/d

Result in:
   foo/d/...

and have only a single directory 'd' at the top of the resulting git repo.
My current choices seem to be to put the contents of 'd' at the root, or
have the whole 'a/b/c/d' tree visible as what the '--keep-path' option does.

If this isn't implemented, any suggestions on the best way to go about
implementing this, or another way to do this.

What I'm trying to do is emulate the behavior of a P4 client spec.  There
is a single directory (now, there will probably be others later) that is in
a different place in Perforce and it needs to be in this directory in order
to build.  I've tried working with a submodule, but it is cumbersome to do
things like bisections when there are dependencies between the trees.

Thanks,
Dave

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-06  5:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-06  5:15 git-p4: Import not at root of tree David Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).