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

Re: git-svn dcommit always uses my own name

From
Avery Pennarun <apenwarr@gmail.com>
Date
Apr 15, 2008, 22:35 UTC
Message-ID
<32541b130804151535g56a8133dk863da833be87fb08@mail.gmail.com>
In-Reply-To
<cac9e4380804151508p688bd7b7o1eb413b4133dad57@mail.gmail.com>
On 4/15/08, Richard Quirk <richard.quirk@gmail.com> wrote:
Show 11 quoted lines
> Subversion only remembers the user that made the commit; there's no
>  way to tell it that someone else wrote the patch and that you just
>  committed it. However, examining git-svn, there seems to be an
>  undocumented option. You can do this:
>
>  git svn dcommit --use-log-author
>
>  That uses the Signed-off-by: field in the commit message to extract
>  the author information. Of course it won't rescue the author field on
>  old commits, and you have to have Signed-off-by on any new ones to
>  gain any benefit.

Hmm, it looks like --use-log-author really affects git-svn fetch, not commit: in other words, it pulls the signed-off-by information from the svn repo when importing the commits back into git.

This is actually the clue I needed, which I think is: use signed-off-by lines in the first place, because that will solve my problem of tracking who wrote each patch :)

Have fun,
Avery
Previous: Richard Quirk
Message 3 of 3 in “git-svn dcommit always uses my own name”
  1. Avery PennarunApr 15, 2008
  2. Richard QuirkApr 15, 2008
  3. Avery PennarunApr 15, 2008

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.