git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Tor Arvid Lund" <torarvid@gmail.com>
To: "Kevin Williams" <kevwil@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git-p4 and changing p4 depot path
Date: Fri, 5 Sep 2008 20:04:10 +0200	[thread overview]
Message-ID: <1a6be5fa0809051104g59e08b2dya37add721483d390@mail.gmail.com> (raw)
In-Reply-To: <683a886f0809050947k3b461495u459607dccf891698@mail.gmail.com>

Hi,

On Fri, Sep 5, 2008 at 6:47 PM, Kevin Williams <kevwil@gmail.com> 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-

  reply	other threads:[~2008-09-05 18:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05 16:47 git-p4 and changing p4 depot path Kevin Williams
2008-09-05 18:04 ` Tor Arvid Lund [this message]
2008-09-05 18:54   ` Kevin Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1a6be5fa0809051104g59e08b2dya37add721483d390@mail.gmail.com \
    --to=torarvid@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=kevwil@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).