Skip to content

Commit cbc9be5

Browse files
awhitcroftgitster
authored andcommitted
cvsimport: update documentation to include separate remotes option
Document the cvsimport -r <remote> option which switches cvsimport to using a separate remote for tracking branches. Signed-off-by: Andy Whitcroft <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8b7f5fc commit cbc9be5

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

Documentation/git-cvsimport.txt

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNOPSIS
1313
[-A <author-conv-file>] [-p <options-for-cvsps>] [-P <file>]
1414
[-C <git_repository>] [-z <fuzz>] [-i] [-k] [-u] [-s <subst>]
1515
[-a] [-m] [-M <regex>] [-S <regex>] [-L <commitlimit>]
16-
[<CVS_module>]
16+
[-r <remote>] [<CVS_module>]
1717

1818

1919
DESCRIPTION
@@ -25,10 +25,12 @@ Splitting the CVS log into patch sets is done by 'cvsps'.
2525
At least version 2.1 is required.
2626

2727
You should *never* do any work of your own on the branches that are
28-
created by git-cvsimport. The initial import will create and populate a
28+
created by git-cvsimport. By default initial import will create and populate a
2929
"master" branch from the CVS repository's main branch which you're free
3030
to work with; after that, you need to 'git merge' incremental imports, or
31-
any CVS branches, yourself.
31+
any CVS branches, yourself. It is advisable to specify a named remote via
32+
-r to separate and protect the incoming branches.
33+
3234

3335
OPTIONS
3436
-------
@@ -51,10 +53,19 @@ OPTIONS
5153
The git repository to import to. If the directory doesn't
5254
exist, it will be created. Default is the current directory.
5355

56+
-r <remote>::
57+
The git remote to import this CVS repository into.
58+
Moves all CVS branches into remotes/<remote>/<branch>
59+
akin to the git-clone --use-separate-remote option.
60+
5461
-o <branch-for-HEAD>::
55-
The 'HEAD' branch from CVS is imported to the 'origin' branch within
56-
the git repository, as 'HEAD' already has a special meaning for git.
57-
Use this option if you want to import into a different branch.
62+
When no remote is specified (via -r) the 'HEAD' branch
63+
from CVS is imported to the 'origin' branch within the git
64+
repository, as 'HEAD' already has a special meaning for git.
65+
When a remote is specified the 'HEAD' branch is named
66+
remotes/<remote>/master mirroring git-clone behaviour.
67+
Use this option if you want to import into a different
68+
branch.
5869
+
5970
Use '-o master' for continuing an import that was initially done by
6071
the old cvs2git tool.

git-cvsimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ (;$)
4040
[-o branch-for-HEAD] [-h] [-v] [-d CVSROOT] [-A author-conv-file]
4141
[-p opts-for-cvsps] [-P file] [-C GIT_repository] [-z fuzz] [-i] [-k]
4242
[-u] [-s subst] [-a] [-m] [-M regex] [-S regex] [-L commitlimit]
43-
[CVS_module]
43+
[-r remote] [CVS_module]
4444
END
4545
exit(1);
4646
}

0 commit comments

Comments
 (0)