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

Re: [PATCH v2] git-svn: add --authors-prog option

From
Mark Lodato <lodatom@gmail.com>
Date
May 9, 2009, 03:48 UTC
Message-ID
<ca433830905082048u6088a58ai16b1c979ef742f7@mail.gmail.com>
In-Reply-To
<4A03E2A2.4050303@drmicha.warpmail.net>

On Fri, May 8, 2009 at 3:43 AM, Michael J Gruber <git@drmicha.warpmail.net> wrote:

Show 16 quoted lines
> Mark Lodato venit, vidit, dixit 08.05.2009 03:11:
>>  config key: svn.authorsfile
>>
>> +--authors-prog=<filename>::
>> +
>> +If this option is specified, for each SVN committer name that does not
>> +exist in the authors file, the given file is executed with the commiter
>
> s/commiter/committer/
>
> Also, "If..., the given... for each..." may be easier to read.
>
>> +name as the first argument.  The program is expected to return a single
>> +line of the form "Name <email>", which will be logically inserted into the
>
> "be treated as if included in the..."
Will do.
>
> Maybe we want a config key also, just like for the authors file.
Yes, this is a very good idea.  I will figure out how to do this.
> The feature itself looks useful for large user databases. For smaller
> ones one could just as well update the authors file before each fetch by
> dumping the whole db in there (or even conditionally on git svn fetch
> erroring out due to encountering an unknown name).

Right. This feature will most likely be useful in corporate environments. In my case, it is not possible to dump the entire user database to a file, so this patch is the only solution. Another possible use case is where SVN usernames are standardized, e.g. "jdoe" -> "J Doe <jdoe@example.com>". Also, using --authors-prog solves the problem of keeping the authors file up-to-date, if users are regularly added or deleted.

Previous: Michael J GruberNext: Eric Wong
Message 3 of 7 in “git-svn: add --authors-prog option”
  1. git-svn: add --authors-prog optionMark Lodato, May 8, 2009
  2. Michael J GruberMay 8, 2009
  3. Mark LodatoMay 9, 2009
  4. Eric WongMay 10, 2009
  5. git-svn: add --authors-prog optionMark Lodato, May 15, 2009
  6. Eric WongMay 21, 2009
  7. Junio C HamanoMay 21, 2009

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.