{"thread":{"id":"5685","subject":"[PATCH] Allow '(no author)' in git-svn's authors file.","startedAt":"2006-09-25T03:04:55Z","lastAt":"2006-09-25T03:04:55Z","messageCount":1,"participants":["Shawn Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"27607","messageId":"20060925030455.GA15745@spearce.org","threadId":"5685","inReplyTo":null,"subject":"[PATCH] Allow '(no author)' in git-svn's authors file.","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-09-25T03:04:55Z","receivedAt":"2006-09-25T03:04:55Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"When trying to import an SVN revision which has no author the Git\nuser may desire to relabel '(no author)' to another name and email\naddress with their svn.authorsfile.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n git-svn.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 8a2ef99..017f45a 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -2171,7 +2171,7 @@ sub load_authors {\n \topen my $authors, '<', $_authors or die \"Can't open $_authors $!\\n\";\n \twhile (<$authors>) {\n \t\tchomp;\n-\t\tnext unless /^(\\S+?)\\s*=\\s*(.+?)\\s*<(.+)>\\s*$/;\n+\t\tnext unless /^(\\S+?|\\(no author\\))\\s*=\\s*(.+?)\\s*<(.+)>\\s*$/;\n \t\tmy ($user, $name, $email) = ($1, $2, $3);\n \t\t$users{$user} = [$name, $email];\n \t}\n-- \n1.4.2.1.gde2b2-dirty\n"}]}