Re: Signed-off-by vs Reviewed-by
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Mar 31, 2016, 15:02 UTC
- Message-ID
- <CAP8UFD3UEPGA80C8OZ9uOg+Hsd3x7uJ-nJOQMGGDtB8a+3QCrA@mail.gmail.com>
- In-Reply-To
- <20160331143244.GD31116@sigill.intra.peff.net>
On Thu, Mar 31, 2016 at 4:32 PM, Jeff King <peff@peff.net> wrote:
Show 20 quoted lines
> On Thu, Mar 31, 2016 at 02:35:07PM +0200, Miklos Vajna wrote: > >> Hi, >> >> Some projects like LibreOffice don't use Signed-off-by, instead usually >> use Gerrit for code review, and reviewers add a Reviewed-by line when >> they are OK with a patch. In this workflow it's a bit unfortunate that >> adding a Signed-off-by line is just a command-line switch, but adding a >> Reviewed-by line is more complex. >> >> Is there anything in git that could help this situation? I didn't see >> any related config option; I wonder if a patch would be accepted to make >> the "Signed-off-by" line configurable, or there is a better way. > > There's git-interpret-trailers, which can do the heavy lifting of adding > it in the right place. But I don't know how you'd want to trigger it; it > would depend on the workflow that people use to add their signoff in the > first place. I don't think there is anything as easy as "git commit > --amend -s", but I'm not all that familiar with the interpret-trailers > code.
The plan was to make it possible for many commands, like commit, cherry-pick, am, and so on, to accept "--trailer ..." options and to pass them to interpret-trailers that would process them. I remember starting working on that and sending some patches at one point...