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"));
|
||||
|
@ -869,7 +869,7 @@ static void prepare_to_commit(struct commit_list *remoteheads)
|
||||
_(no_scissors_editor_comment), comment_line_char);
|
||||
}
|
||||
if (signoff)
|
||||
append_signoff(&msg, ignore_non_trailer(msg.buf, msg.len), 0);
|
||||
append_signoff(&msg, ignored_log_message_bytes(msg.buf, msg.len), 0);
|
||||
write_merge_heads(remoteheads);
|
||||
write_file_buf(git_path_merge_msg(the_repository), msg.buf, msg.len);
|
||||
if (run_commit_hook(0 < option_edit, get_index_file(), NULL,
|
||||
|
Reference in New Issue
Block a user