From: Karl Hasselström Date: Mon, 27 Feb 2006 23:08:15 +0000 (+0100) Subject: Let git-svnimport's author file use same syntax as git-cvsimport's X-Git-Tag: v1.3.0-rc1~99^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=80804d0af8f5bfa8ce87b5ef72cd2c5eb64c8f40;p=git.git Let git-svnimport's author file use same syntax as git-cvsimport's git-cvsimport uses a username => Full Name mapping file with this syntax: kha=Karl Hasselström Since there is no reason to use another format for git-svnimport, use the same format. Signed-off-by: Karl Hasselström Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-svnimport.txt b/Documentation/git-svnimport.txt index e0e3a5d4e..912a80865 100644 --- a/Documentation/git-svnimport.txt +++ b/Documentation/git-svnimport.txt @@ -75,9 +75,9 @@ When importing incrementally, you might need to edit the .git/svn2git file. -A :: Read a file with lines on the form - username User's Full Name + username = User's Full Name - and use "User's Full Name " as the GIT + 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. diff --git a/git-svnimport.perl b/git-svnimport.perl index 75ce8e068..86837edbd 100755 --- a/git-svnimport.perl +++ b/git-svnimport.perl @@ -74,7 +74,7 @@ if ($opt_A) { open(my $authors,$opt_A); while(<$authors>) { chomp; - next unless /^(\S+)\s+(.+?)\s+<(\S+)>$/; + next unless /^(\S+?)\s*=\s*(.+?)\s*<(.+)>\s*$/; (my $user,my $name,my $email) = ($1,$2,$3); $users{$user} = [$name,$email]; }