Merge branch 'la/trailer-cleanups'
Code clean-up. * la/trailer-cleanups: trailer: use offsets for trailer_start/trailer_end trailer: find the end of the log message commit: ignore_non_trailer computes number of bytes to ignore
This commit is contained in:
@ -900,7 +900,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.buf, sb.len), 0);
|
||||
append_signoff(&sb, ignored_log_message_bytes(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