commit: make ignore_non_trailer take buf/len
Make ignore_non_trailer take a buf/len pair instead of struct strbuf. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
e4319562bc
commit
710714aaa8
@ -790,7 +790,7 @@ static int prepare_to_commit(const char *index_file, const char *prefix,
|
||||
strbuf_stripspace(&sb, 0);
|
||||
|
||||
if (signoff)
|
||||
append_signoff(&sb, ignore_non_trailer(&sb), 0);
|
||||
append_signoff(&sb, ignore_non_trailer(sb.buf, sb.len), 0);
|
||||
|
||||
if (fwrite(sb.buf, 1, sb.len, s->fp) < sb.len)
|
||||
die_errno(_("could not write commit template"));
|
||||
|
Reference in New Issue
Block a user