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

Re: [PATCH 4/4] Read author names and emails from a file

From
Junio C Hamano <junkio@cox.net>
Date
Feb 27, 2006, 05:51 UTC
Message-ID
<7vbqwt1h9r.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<440195D4.7080905@op5.se>
Andreas Ericsson <ae@op5.se> writes:
Show 9 quoted lines
> Karl Hasselström wrote:
>> Read a file with lines on the form
>>   username User's Full Name <email@addres.org>
>> and use "User's Full Name <email@addres.org>" 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.
>
> This is a good thing, but wouldn't it be better to use the same format
> as that of cvsimport's -A flag?

If both CVS and SVN have their own native format to express things like this, and if the format they use are different, then that is a valid reason for git-{cvs,svn}import to use different file format.

But if that is not the case, I tend to agree that it might be easier for users if we had just one format. I do not think, however, any single project is likely to have to deal with both CVS and SVN upstream, importing into the same git repository, so reusing the mapping file would not be an issue, but having to learn how to write the mapping just once is a good thing.

I do not offhand recall if SVN has its own native format; if it has, it may be better to use that, instead of matching what git-cvsimport does, since I do not think of a reason why the version with an equal sign is preferrable over the version with a space. If the version with '=' were the CVS native format then that might be a reason to prefer it, but if I recall correctly that is not the case. so...

Previous: Andreas EricssonNext: Karl Hasselström
Message 7 of 12 in “some git-svnimport improvements”
  1. 0/4 some git-svnimport improvementsKarl Hasselström, Feb 26, 2006
  2. 1/4 Mention -r in usage summaryKarl Hasselström, Feb 26, 2006
  3. 2/4 Convert executable flagKarl Hasselström, Feb 26, 2006
  4. 3/4 Convert the svn:ignore propertyKarl Hasselström, Feb 26, 2006
  5. 4/4 Read author names and emails from a fileKarl Hasselström, Feb 26, 2006
  6. Andreas EricssonFeb 26, 2006
  7. Junio C HamanoFeb 27, 2006
  8. Karl HasselströmFeb 27, 2006
  9. 1/2 Let git-svnimport's author file use same syntax as git-cvsimport'sKarl Hasselström, Feb 27, 2006
  10. Jon LoeligerMar 1, 2006
  11. Karl HasselströmMar 2, 2006
  12. 2/2 Save username -> Full Name <email@addr.es> map fileKarl Hasselström, Feb 27, 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.