Skip to content

Commit 80804d0

Browse files
kwibergJunio C Hamano
authored andcommitted
Let git-svnimport's author file use same syntax as git-cvsimport's
git-cvsimport uses a username => Full Name <email@addr.es> mapping file with this syntax: kha=Karl Hasselström <kha@treskal.com> Since there is no reason to use another format for git-svnimport, use the same format. Signed-off-by: Karl Hasselström <kha@treskal.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 36610b2 commit 80804d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/git-svnimport.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ When importing incrementally, you might need to edit the .git/svn2git file.
7575
-A <author_file>::
7676
Read a file with lines on the form
7777

78-
username User's Full Name <email@addres.org>
78+
username = User's Full Name <email@addr.es>
7979

80-
and use "User's Full Name <email@addres.org>" as the GIT
80+
and use "User's Full Name <email@addr.es>" as the GIT
8181
author and committer for Subversion commits made by
8282
"username". If encountering a commit made by a user not in the
8383
list, abort.

git-svnimport.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ END
7474
open(my $authors,$opt_A);
7575
while(<$authors>) {
7676
chomp;
77-
next unless /^(\S+)\s+(.+?)\s+<(\S+)>$/;
77+
next unless /^(\S+?)\s*=\s*(.+?)\s*<(.+)>\s*$/;
7878
(my $user,my $name,my $email) = ($1,$2,$3);
7979
$users{$user} = [$name,$email];
8080
}

0 commit comments

Comments
 (0)