]> git.ipfire.org Git - thirdparty/git.git/commit - log-tree.c
Unify appending signoff in format-patch, commit and sequencer
authorBrandon Casey <drafnel@gmail.com>
Tue, 12 Feb 2013 10:17:39 +0000 (02:17 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2013 19:30:21 +0000 (11:30 -0800)
commit959a26231f53b9cc7da40d36c550aef193647731
tree8b66f4f59a4241e848312ba9a02a554effc54a63
parent5289c56a72efc6e5e4409c7a3802fc54aea09340
Unify appending signoff in format-patch, commit and sequencer

There are two implementations of append_signoff in log-tree.c and
sequencer.c, which do more or less the same thing.  Unify on top of the
sequencer.c implementation.

Add a test in t4014 to demonstrate support for non-s-o-b elements in the
commit footer provided by sequence.c:append_sob.  Mark tests fixed as
appropriate.

[Commit message mostly stolen from Nguyễn Thái Ngọc Duy's original
 unification patch]

Signed-off-by: Brandon Casey <bcasey@nvidia.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c
t/t4014-format-patch.sh