[LLVMdev] git-svn authorship (was: Howdy + GIT)

Greg Fitzgerald garious at gmail.com
Fri Jan 16 15:19:57 PST 2015


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.

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

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


>From the git-svn docs:

--use-log-author

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


--add-author-from

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

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

Thanks,
Greg




More information about the llvm-dev mailing list