diff options
author | Simon Hausmann <simon@lst.de> | 2007-04-08 10:08:26 +0200 |
---|---|---|
committer | Simon Hausmann <simon@lst.de> | 2007-04-08 10:08:26 +0200 |
commit | f9a3a4f796461276bbbcfef965984086e8e00b46 (patch) | |
tree | 4b72129ff19700f437cf6c3f3833305d8f979bb9 /contrib/fast-import/git-p4.txt | |
parent | 68ed351ab51c8b5731665fe6a8a7cc9651edf6c9 (diff) | |
download | git-f9a3a4f796461276bbbcfef965984086e8e00b46.tar.gz git-f9a3a4f796461276bbbcfef965984086e8e00b46.tar.xz |
Added git-p4 clone convenience command
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 | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/contrib/fast-import/git-p4.txt b/contrib/fast-import/git-p4.txt index 5f7251c2d..99ae85bd7 100644 --- a/contrib/fast-import/git-p4.txt +++ b/contrib/fast-import/git-p4.txt @@ -10,7 +10,25 @@ done using "git-p4 submit". Importing ========= -The procedure is simple: +You can simply start with + + git-p4 clone //depot/path/project + +or + + git-p4 clone //depot/path/project myproject + +This will create an empty git repository in a subdirectory called "project" (or +"myproject" with the second command), import the head revision from the +specified perforce path into a git "p4" branch, create a master branch off it +and check it out. If you want the entire history (not just the head revision) then +you can simply append a "@all" to the depot path: + + git-p4 clone //depot/project/main@all myproject + + + +If you want more control you can also use the git-p4 sync command directly: mkdir repo-git cd repo-git @@ -31,6 +49,9 @@ a big import. This may take a while. Support for Perforce integrations is still work in progress. Don't bother trying it unless you want to hack on it :) +For convenience there's also the git-p4 clone command that works similar to +git-clone and combines the creation of the git repository with the the initial +import and the branch setup Incremental Imports =================== |