Re: [PATCH v3 11/11] Unify appending signoff in format-patch, commit and sequencer
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Feb 11, 2013, 09:00 UTC
- Message-ID
- <20130211090009.GR15329@elie.Belkin>
- In-Reply-To
- <CA+sFfMduqEJPtDQyTe2n7QiLmDpTN7MzLGrUNf1hWf-h0rGzvA@mail.gmail.com>
Brandon Casey wrote:
Show 5 quoted lines
> We want to be able to support lines that do > not have email addresses on the right-hand side like: > > Bug: XXX > Change-Id: XXX
Good call.
By the way, regarding what the right "--signoff" behavior is for commit, cherry-pick, am, and format-patch:
I think the best behavior would be to check if the last signed-off-by line (ignoring acked-by, bug, change-id, and so on lines that follow it) matches the one to be added, and if it doesn't, add a new sign-off. That way, the sign-off list still would accurately describe the path of the patch, without silliness like
Signed-off-by: me Reviewed-by: someone Signed-off-by: me
that you mentioned.
I agree that that's orthogonal to this series and just mostly preserving behavior (as you already do) is the right thing to do.
Thanks for noticing the edge cases.
Jonathan