X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-svnimport.txt;h=9d3865719c37b9cef435b6a5b77afe3ff9aa7b40;hb=2b13527e6477916ed5cb6f1858d9d0e5381d236d;hp=db1ce38daf52c75eee576032e9b34d0eb51cad07;hpb=235a91e6b0d1d18a2517cf7e0a18278a6912bdb0;p=git.git diff --git a/git-svnimport.txt b/git-svnimport.txt index db1ce38d..9d386571 100644 --- a/git-svnimport.txt +++ b/git-svnimport.txt @@ -9,11 +9,13 @@ git-svnimport - Import a SVN repository into git SYNOPSIS -------- +[verse] 'git-svnimport' [ -o ] [ -h ] [ -v ] [ -d | -D ] - [ -C ] [ -i ] [ -u ] [-l limit_rev] - [ -b branch_subdir ] [ -T trunk_subdir ] [ -t tag_subdir ] - [ -s start_chg ] [ -m ] [ -M regex ] - [ ] + [ -C ] [ -i ] [ -u ] [-l limit_rev] + [ -b branch_subdir ] [ -T trunk_subdir ] [ -t tag_subdir ] + [ -s start_chg ] [ -m ] [ -r ] [ -M regex ] + [ -I ] [ -A ] + [ ] DESCRIPTION @@ -21,7 +23,7 @@ DESCRIPTION Imports a SVN repository into git. It will either create a new repository, or incrementally import into an existing one. -SVN access is done by the SVN:: Perl module. +SVN access is done by the SVN::Perl module. git-svnimport assumes that SVN repositories are organized into one "trunk" directory where the main development happens, "branch/FOO" @@ -61,6 +63,31 @@ When importing incrementally, you might need to edit the .git/svn2git file. the git repository. Use this option if you want to import into a different branch. +-r:: + Prepend 'rX: ' to commit messages, where X is the imported + subversion revision. + +-I :: + Import the svn:ignore directory property to files with this + name in each directory. (The Subversion and GIT ignore + syntaxes are similar enough that using the Subversion patterns + directly with "-I .gitignore" will almost always just work.) + +-A :: + Read a file with lines on the form + + username = User's Full Name + + and use "User's Full Name " as the GIT + author and committer for Subversion commits made by + "username". If encountering a commit made by a user not in the + list, abort. + + For convenience, this data is saved to $GIT_DIR/svn-authors + each time the -A option is provided, and read from that same + file each time git-svnimport is run with an existing GIT + repository without -A. + -m:: Attempt to detect merges based on the commit message. This option will enable default regexes that try to capture the name source @@ -74,8 +101,8 @@ When importing incrementally, you might need to edit the .git/svn2git file. -l :: Specify a maximum revision number to pull. - Formerly, this option controlled how many revisions to pull, due to - SVN memory leaks. (These have been worked around.) + Formerly, this option controlled how many revisions to pull, + due to SVN memory leaks. (These have been worked around.) -v:: Verbosity: let 'svnimport' report what it is doing. @@ -100,11 +127,7 @@ with a 40x error pretty quickly. If you're using the "-d" or "-D" option, this is the URL of the SVN repository itself; it usually ends in "/svn". -:: - The URL of the SVN module you want to import. For local - repositories, use "file:///absolute/path". - - +:: The path to the module you want to check out. -h::