git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Allow '(no author)' in git-svn's authors file.

From
Shawn Pearce <spearce@spearce.org>
Date
Sep 25, 2006, 03:04 UTC
Message-ID
<20060925030455.GA15745@spearce.org>

When trying to import an SVN revision which has no author the Git user may desire to relabel '(no author)' to another name and email address with their svn.authorsfile.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 8a2ef99..017f45a 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2171,7 +2171,7 @@ sub load_authors {
 	open my $authors, '<', $_authors or die "Can't open $_authors $!\n";
 	while (<$authors>) {
 		chomp;
-		next unless /^(\S+?)\s*=\s*(.+?)\s*<(.+)>\s*$/;
+		next unless /^(\S+?|\(no author\))\s*=\s*(.+?)\s*<(.+)>\s*$/;
 		my ($user, $name, $email) = ($1, $2, $3);
 		$users{$user} = [$name, $email];
 	}
-- 
1.4.2.1.gde2b2-dirty
Message 1 of 1 in “Allow '(no author)' in git-svn's authors file.”
  1. Allow '(no author)' in git-svn's authors file.Shawn Pearce, Sep 25, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.