[LLVMdev] git-svn authorship

Ronan Keryell ronan at keryell.fr
Fri Jan 16 17:35:45 PST 2015


>>>>> On Fri, 16 Jan 2015 15:19:57 -0800, Greg Fitzgerald <garious at gmail.com> said:

    Erik> I am surprised noone has mentioned the one of the biggest
    Erik> advantages of Git which is proper author attribution for
    Erik> non-core and drive-by patch contributors.

    Greg> From what I can make of the git-svn docs, that LLVM committers
    Greg> be adding a "From: <email>" field to commit messages instead
    Greg> of "Patch by <name>".  If the original author is already in
    Greg> the git commit, you can generate the "From: <email>" field in
    Greg> the SVN commit message with:

    Greg>     git svn --add-author-from --use-log-author dcommit


    Greg> From the git-svn docs:

    Greg> --use-log-author

    Greg> When retrieving svn commits into Git (as part of fetch,
    Greg> rebase, or dcommit operations), look for the first From: or
    Greg> Signed-off-by: line in the log message and use that as the
    Greg> author string.

    Greg> --add-author-from

    Greg> When committing to svn from Git (as part of commit-diff,
    Greg> set-tree or dcommit operations), if the existing log message
    Greg> doesn’t already have a From: or Signed-off-by: line, append a
    Greg> From:line based on the Git commit’s author string. If you use
    Greg> this, then --use-log-author will retrieve a valid author
    Greg> string for all commits.

    Greg> https://www.kernel.org/pub/software/scm/git/docs/git-svn.html

That is interesting. To be tested!

But as I said in my previous message, I think that would require the
committer has some specific access right on the svn server to override
the name that is normally got from the authentication protocol. This is
to be double-checked. But perhaps putting this kind of burden in the
git-svn syntax on the svn committers would motivate them to move to
git... :-)
-- 
  Ronan KERYELL




More information about the llvm-dev mailing list