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

Re: stgit: managing signed-off-by lines

From
Jon Smirl <jonsmirl@gmail.com>
Date
Jan 25, 2008, 14:43 UTC
Message-ID
<9e4733910801250643u11819491i961d092deae7c5d7@mail.gmail.com>
In-Reply-To
<20080125143026.GA10132@diana.vm.bytemark.co.uk>
On 1/25/08, Karl Hasselström <kha@treskal.com> wrote:
Show 24 quoted lines
> On 2008-01-25 08:34:53 -0500, Jon Smirl wrote:
>
> > On 1/25/08, Karl Hasselström <kha@treskal.com> wrote:
> >
> > > What command are you using to export patches?
> >
> > I am using "stg export" from one branch and then "stg import -s" on
> > another. After I import the patch and do 'stg edit' on it, it has
> > the signed-off-by line in it. When it is export from that branch the
> > signed-off-by get added again.
> >
> > You don't want to strip the signed-off-by lines on import, they may
> > be from other people. I would think that on export you could look
> > and see if my signed-off-by line is already on the patch before
> > adding it again.
>
> I haven't set up my templates to add sign-offs on export; instead, I
> give --sign to "stg import". This always does the right thing:
>
>   1. It's smart enough to notice if my sign-off is already there, and
>      don't add another copy.
>
>   2. My sign-off is propagated even if the patches are transferred by
>      pulling instead of by email or "stg export".

Yes, I added Signed-of-by to the export and mail templates. I did it six months ago and I had forgotten. I can fix this by just removing it from the export template. I've learned to use 'stg mail' now and it is the only way I publicly expose patches. It works to just add the Signed-off-by at the email stage.

Longer term you may want to add a de-dupe check for the signed-off-by lines that gets called in all contexts.

Show 19 quoted lines
>
> For patches that I write myself (so that they are never "stg
> import"ed), I add the sign-off manually in the commit message, with
> the aid of this elisp snippet:
>
>   (defun sign-off ()
>     "Insert sign-off line."
>     (interactive)
>     (git-append-sign-off (git-get-committer-name) (git-get-committer-email))))
>
> Adding the sign-off conditionally in "stg mail" and "stg export", as
> you suggest, could of course be done. But that would have to be
> command line options, since the template system can't really express
> that kind of transformation.
>
> --
> Karl Hasselström, kha@treskal.com
>       www.treskal.com/kalle
>
-- 
Jon Smirl
jonsmirl@gmail.com
Previous: Karl HasselströmNext: Karl Hasselström
Message 5 of 7 in “stgit: managing signed-off-by lines”
  1. Jon SmirlJan 24, 2008
  2. Karl HasselströmJan 25, 2008
  3. Jon SmirlJan 25, 2008
  4. Karl HasselströmJan 25, 2008
  5. Jon SmirlJan 25, 2008
  6. Karl HasselströmJan 25, 2008
  7. Karl HasselströmJan 25, 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.