Re: stgit: managing signed-off-by lines

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Karl
Date: Friday, January 25, 2008 - 7:30 am

On 2008-01-25 08:34:53 -0500, Jon Smirl wrote:


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".

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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
stgit: managing signed-off-by lines, Jon Smirl, (Thu Jan 24, 1:27 pm)
Re: stgit: managing signed-off-by lines, Karl , (Fri Jan 25, 1:38 am)
Re: stgit: managing signed-off-by lines, Jon Smirl, (Fri Jan 25, 6:34 am)
Re: stgit: managing signed-off-by lines, Karl , (Fri Jan 25, 7:30 am)
Re: stgit: managing signed-off-by lines, Karl , (Fri Jan 25, 7:34 am)
Re: stgit: managing signed-off-by lines, Jon Smirl, (Fri Jan 25, 7:43 am)
Re: stgit: managing signed-off-by lines, Karl , (Fri Jan 25, 8:40 am)