Re: [RFC/PATCH] Add interpret-trailers builtin
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- Nov 6, 2013, 20:16 UTC
- Message-ID
- <20131106.211659.1008913569403460043.chriscool@tuxfamily.org>
- In-Reply-To
- <xmqq4n7pa1pn.fsf@gitster.dls.corp.google.com>
From: Junio C Hamano <gitster@pobox.com>
Show 12 quoted lines
> Christian Couder <christian.couder@gmail.com> writes: > >> To append a s-o-b only if there is no s-o-b already, one would need to use: >> >> [trailer "signoff"] >> key = "Signed-off-by:" >> if_exist = dont_append >> if_missing = append >> command = echo "$GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL>"' > > But that is insufficient to emulate what we do, no? I.e. append > unless the last one is from the same person we are about to add.
Yeah, but, with DONT_REPEAT_PREVIOUS, it would be possible using:
[trailer "signoff"]
key = "Signed-off-by:"
if_exist = dont_repeat_previous
if_missing = append
command = echo "$GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL>"'Cheers, Christian.