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