diff options
author | Matthias Urlichs <smurf@smurf.noris.de> | 2005-07-05 15:32:29 +0200 |
---|---|---|
committer | Matthias Urlichs <smurf@smurf.noris.de> | 2005-07-05 15:32:29 +0200 |
commit | f4b3a4c30b5ea3a5de2a2597a3c53266017d02ba (patch) | |
tree | 53a29e3d3820edd03f39ab5206b27055fc657c33 /Documentation | |
parent | git-rev-list: make sure the output is sorted by recency (diff) | |
parent | Merge with http://www.liacs.nl/~sverdool/git.git#cvs2git (diff) | |
download | tgif-f4b3a4c30b5ea3a5de2a2597a3c53266017d02ba.tar.xz |
Merge with Linus' current tree
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/cvs-migration.txt | 34 | ||||
-rw-r--r-- | Documentation/git-cvsimport-script.txt | 75 |
2 files changed, 102 insertions, 7 deletions
diff --git a/Documentation/cvs-migration.txt b/Documentation/cvs-migration.txt index 4e2c452034..e39b82938a 100644 --- a/Documentation/cvs-migration.txt +++ b/Documentation/cvs-migration.txt @@ -63,18 +63,38 @@ Once you've gotten (and installed) cvsps, you may or may not want to get any more familiar with it, but make sure it is in your path. After that, the magic command line is - git cvsimport <cvsroot> <module> + git cvsimport -v -d <cvsroot> <module> <destination> which will do exactly what you'd think it does: it will create a git -archive of the named CVS module. The new archive will be created in a -subdirectory named <module>. +archive of the named CVS module. The new archive will be created in the +subdirectory named <destination>; it'll be created if it doesn't exist. +Default is the local directory. It can take some time to actually do the conversion for a large archive since it involves checking out from CVS every revision of every file, -and the conversion script can be reasonably chatty, but on some not very -scientific tests it averaged about eight revisions per second, so a -medium-sized project should not take more than a couple of minutes. For -larger projects or remote repositories, the process may take longer. +and the conversion script is reasonably chatty unless you omit the '-v' +option, but on some not very scientific tests it averaged about twenty +revisions per second, so a medium-sized project should not take more +than a couple of minutes. For larger projects or remote repositories, +the process may take longer. + +After the (initial) import is done, the CVS archive's current head +revision will be checked out -- thus, you can start adding your own +changes right away. + +The import is incremental, i.e. if you call it again next month it'll +fetch any CVS updates that have been happening in the meantime. The +cut-off is date-based, so don't change the branches that were imported +from CVS. + +You can merge those updates (or, in fact, a different CVS branch) into +your main branch: + + cg-merge <branch> + +The HEAD revision from CVS is named "origin", not "HEAD", because git +already uses "HEAD". (If you don't like 'origin', use cvsimport's +'-o' option to change it.) Emulating CVS behaviour diff --git a/Documentation/git-cvsimport-script.txt b/Documentation/git-cvsimport-script.txt new file mode 100644 index 0000000000..4eb0f43246 --- /dev/null +++ b/Documentation/git-cvsimport-script.txt @@ -0,0 +1,75 @@ +git-cvsimport-script(1) +======================= +v0.1, July 2005 + +NAME +---- +git-cvsimport-script - Import a CVS repository into git + + +SYNOPSIS +-------- +'git-cvsimport-script' [ -o <branch-for-HEAD> ] [ -h ] [ -v ] + [ -d <CVSROOT> ] [ -p <options-for-cvsps> ] + [ -C <GIT_repository> ] [ <CVS_module> ] + + +DESCRIPTION +----------- +Imports a CVS repository into git. It will either create a new +repository, or incrementally import into an existing one. + +Splitting the CVS log into patch sets is done by 'cvsps'. +At least version 2.1 is required. + +OPTIONS +------- +-d <CVSROOT>:: + The root of the CVS archive. May be local (a simple path) or remote; + currently, only the :local:, :ext: and :pserver: access methods + are supported. + +-o <branch-for-HEAD>:: + The 'HEAD' branch from CVS is imported to the 'origin' branch within + the git repository, as 'HEAD' already has a special meaning for git. + Use this option if you want to import into a different branch. + + Use '-o master' for continuing an import that was initially done by + the old cvs2git tool. + +-p <options-for-cvsps>:: + Additional options for cvsps. + The options '-x' and '-A' are implicit and should not be used here. + + If you need to pass multiple options, separate them with a comma. + +-v:: + Verbosity: let 'cvsimport' report what it is doing. + +<CVS_module>:: + The CVS module you want to import. Relative to <CVSROOT>. + +-h:: + Print a short usage message and exit. + +OUTPUT +------ +If '-v' is specified, the script reports what it is doing. + +Otherwise, success is indicated the Unix way, i.e. by simply exiting with +a zero exit status. + + +Author +------ +Written by Matthias Urlichs <smurf@smurf.noris.de>, with help from +various participants of the git-list <git@vger.kernel.org>. + +Documentation +-------------- +Documentation by Matthias Urlichs <smurf@smurf.noris.de>. + +GIT +--- +Part of the link:git.html[git] suite + |