Re: git-p4 and changing p4 depot path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Fri, Sep 5, 2008 at 6:47 PM, Kevin Williams <kevwil@xxxxxxxxx> wrote:
> I've got some code I've been working on in a local git repository that
> I cloned from Perforce using git-p4. Now, I need to commit my changes
> to a *different depot path* within Perforce. Since the p4 depot path
> is stored in the logs rather than config, and logs are immutable
> because commits are immutable, it seems I cannot do this. Is there any
> way to do this? Why isn't the depot path stored in config? Please
> help!

I'm not sure I understand why you want to commit to a different
path... Is is just another branch in p4?

In that case, git-p4 already has some support for working with all
branches of a project, given that they all reside under a common path,
like:

//depot/path/to/project/MAIN
//depot/path/to/project/REL_1_4

... where MAIN and REL_1_4 are branches of 'project'. This can be
cloned by invoking

git p4 clone --detect-branches //depot/path/to/project@all

When you are ready to push your git commits to p4, git-p4 will use the
log message of the nearest parent commit from p4 to determine which
depot path (branch) to use. In this way, you can commit your work to
different p4 branches.

-Tor Arvid Lund-
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux