diff options
author | Simon Hausmann <simon@lst.de> | 2007-05-17 22:17:49 +0200 |
---|---|---|
committer | Simon Hausmann <simon@lst.de> | 2007-05-17 22:17:49 +0200 |
commit | ef48f9093ced75ca20295f42b993bd390873573d (patch) | |
tree | 09e0b1b8997733014afec7fc32c33ccf0daf6195 /contrib/fast-import/git-p4.txt | |
parent | 48df6fd850b2d9dc52a8a89a9e6deecd2cf1d351 (diff) | |
download | git-ef48f9093ced75ca20295f42b993bd390873573d.tar.gz git-ef48f9093ced75ca20295f42b993bd390873573d.tar.xz |
Added support for git-p4 sync/rebase --with-origin. See git-p4.txt for details :)
Signed-off-by: Simon Hausmann <simon@lst.de>
Diffstat (limited to 'contrib/fast-import/git-p4.txt')
-rw-r--r-- | contrib/fast-import/git-p4.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/contrib/fast-import/git-p4.txt b/contrib/fast-import/git-p4.txt index 32aeb0ac0..ac8e6cff0 100644 --- a/contrib/fast-import/git-p4.txt +++ b/contrib/fast-import/git-p4.txt @@ -63,6 +63,26 @@ It is recommended to run 'git repack -a -d -f' from time to time when using incremental imports to optimally combine the individual git packs that each incremental import creates through the use of git-fast-import. + +A useful setup may be that you have a periodically updated git repository +somewhere that contains a complete import of a Perforce project. That git +repository can be used to clone the working repository from and one would +import from Perforce directly after cloning using git-p4. If the connection to +the Perforce server is slow and the working repository hasn't been synced for a +while it may be desirable to fetch changes from the origin git repository using +the efficient git protocol. git-p4 supports this through + + git-p4 sync --with-origin + +or + + git-p4 rebase --with-origin + +In that case "git fetch origin" is called and if it turns out that the origin +branch is newer than the git "p4" import branch then the latter is updated from +the former and the direct import from Perforce is resumed, which will result in +fewer changes to be imported using the slower perforce connection. + Updating ======== |