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

Re: [PATCH v2 2/2] git-svn: allow empty email-address in authors-prog and authors-file

From
EWEric Wong <e@80x24.org>
Date
Mar 20, 2018, 22:07 UTC
Message-ID
<20180320220743.GA17234@whir>
In-Reply-To
<b3fce9b7-9fc7-c5a6-eaa5-a5c12ef7d492@gmail.com>
Andreas Heiduk <asheiduk@gmail.com> wrote:
Show 17 quoted lines
> Am 19.03.2018 um 00:04 schrieb Eric Wong:
> > Andreas Heiduk <asheiduk@gmail.com> wrote:
> >> The email address in --authors-file and --authors-prog can be empty but
> >> git-svn translated it into a syntethic email address in the form
> >> $USERNAME@$REPO_UUID. Now git-svn behaves like git-commit: If the email
> >> is explicitly set to the empty string, the commit does not contain
> >> an email address.
> > 
> > What is missing is WHY "<>" is preferable to "<$USERNAME@$REPO_UUID>".
> >
> > $USERNAME is good anyways since projects/organizations tie their
> > SVN usernames to email usernames via LDAP, making it easy to
> > infer their email address from $USERNAME.  The latter can also
> > be used to disambiguate authors if they happen to have the same
> > real name.
> 
> That's still available and it's even still the default.
OK.
> But: If the user of git-svn takes the burden of writing an authors
> script or maintaining an authors file then he should have full control
> over the result as long as git can handle the output reasonably.
> Currently that's the case for git but not for git-svn.
Fair enough.
Show 7 quoted lines
>     jondoe <>
> 
> just means: "There is intentionally no email address." For an
> internal, ephemeral repository that can be OK. It has the advantage,
> that no automatic system (Jira, Jenkins, ...) will try to send emails to 
> 
>     jondoe <jondoe@6aafaa21e0fb4338a68ab372a049893d>

OK, that's a good reason to allow "<>" and should be in the commit message.

Show 5 quoted lines
> Further steps: Eric Sunshine mentioned [1] that you might have concerns about
> the change of behavior per se. For me the patch is not so much a new feature but
> a bugfix bringing git-svn in sync with git itself. Adding an option parameter 
> to enable the new behavior seems strange to me. But there might be other ways
> to achieve the same effect:

New options are not desirable, either, as they increase testing/maintenance overhead. So I'm inclined to take your patch with only an updated commit message...

No rush, though; will wait another bit for others to comment and I expect to be preoccupied this week with other projects and weather problems on the forecast :<

Previous: Andreas HeidukNext: Andreas Heiduk
Message 6 of 13 in “git-svn: --author-prog improvements”
  1. 0/2 git-svn: --author-prog improvementsAndreas Heiduk, Mar 11, 2018
  2. 1/2 git-svn: search --authors-prog in PATH tooAndreas Heiduk, Mar 11, 2018
  3. 2/2 git-svn: allow empty email-address in authors-prog and authors-fileAndreas Heiduk, Mar 11, 2018
  4. Eric WongMar 18, 2018
  5. Andreas HeidukMar 19, 2018
  6. Eric WongMar 20, 2018
  7. git-svn: allow empty email-address using authors-prog and authors-fileAndreas Heiduk, Mar 24, 2018
  8. Eric WongApr 5, 2018
  9. Andreas HeidukApr 5, 2018
  10. Eric WongApr 5, 2018
  11. Junio C HamanoApr 11, 2018
  12. Andreas HeidukMar 18, 2018
  13. Eric SunshineMar 18, 2018

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.