Re: [PATCH v2 06/10] sequencer.c: teach append_signoff how to detect duplicate s-o-b
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 9, 2013, 23:06 UTC
- Message-ID
- <7v7gmhulya.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7v7gmy12op.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 26 quoted lines
> Brandon Casey <drafnel@gmail.com> writes: > >> On Tue, Jan 22, 2013 at 12:38 AM, Jonathan Nieder <jrnieder@gmail.com> wrote: >>> Brandon Casey wrote: >>> >>>> Teach append_signoff how to detect a duplicate s-o-b in the commit footer. >>>> This is in preparation to unify the append_signoff implementations in >>>> log-tree.c and sequencer.c. >>> [...] >>>> --- a/sequencer.c >>>> +++ b/sequencer.c >>>> @@ -1082,9 +1101,10 @@ int sequencer_pick_revisions(struct replay_opts *opts) >>>> return pick_commits(todo_list, opts); >>>> } >>>> >>>> -void append_signoff(struct strbuf *msgbuf, int ignore_footer) >>>> +void append_signoff(struct strbuf *msgbuf, int ignore_footer, int no_dup_sob) >>> >>> Isn't the behavior of passing '1' here just a bug in "format-patch -s"? >> >> I think that is an open question. > > Yes. as I said in a previous review round, I think it was a mistake > that format-patch chose to pay attention to any S-o-b in the patch > trail, not only the last one, and we may want to correcct it once > this series solidifies as a separate "bugfix" change on top.
This is a tangent, but I _think_ (didn't check, though) "git am -s" implements this incorrrectly. Just another LHF somebody may want to take a look.