Re: [PATCH] hooks: add signature using "interpret-trailers"
- From
Ramsay Jones <ramsay@ramsayjones.plus.com>
- Date
- Jul 5, 2017, 20:14 UTC
- Message-ID
- <58c71fab-d93e-d6f0-2df2-654f08a667b7@ramsayjones.plus.com>
- In-Reply-To
- <20170705173508.28711-1-kaarticsivaraam91196@gmail.com>
On 05/07/17 18:35, Kaartic Sivaraam wrote:
Show 16 quoted lines
> The sample hook to prepare the commit message before > a commit allows users to opt-in to add the signature > to the commit message. The signature is added at a place > that isn't consistent with the "-s" option of "git commit". > Further, it could go out of view in certain cases. > > Add the signature in a way similar to "-s" option of > "git commit" using git's interpret-trailers command. > > It works well in all cases except when the user invokes > "git commit" without any arguments. In that case manually > add a new line after the first line to ensure it's consistent > with the output of "-s" option. > > While at it, name the input parameters to improve readability > of script.
I assume each occurrence of 'signature' in the commit message, including the subject, should be 'sign-off' (or Signed-off-by) instead. Yes?
(when I hear 'signature', I think GPG signature).
ATB, Ramsay Jones